/* Tasklist 2.0 - Custom Styles */

/* Layout */
#header {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#left_sidebar {
    padding-left: 1rem;
    padding-right: 1rem;
}

#main_content {
    padding-right: 1rem;
    padding-left: 1rem;
}

/* Fixed sidebar on desktop */
@media (min-width: 768px) {
    .sidebar-sticky {
        position: sticky;
        top: 1rem;
    }
}

/* Section titles */
.section-title {
    padding: 0.5rem 0;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 0.5rem;
}

.section-title.collapsible {
    cursor: pointer;
    user-select: none;
}

.section-title.collapsible:hover {
    color: #0d6efd;
}

/* Sort buttons */
.sort-btn {
    padding: 0.15rem 0.4rem;
    font-size: 0.8rem;
}

/* Extra small button variant */
.btn-xs {
    padding: 0.1rem 0.3rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Task title column */
.task-title {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Priority badges */
.badge {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Table tweaks */
.table td, .table th {
    vertical-align: middle;
    padding: 0.35rem 0.5rem;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Filter section */
#left_sidebar .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

#left_sidebar .form-control,
#left_sidebar .form-select {
    font-size: 0.85rem;
}

/* Toast container */
.toast-container {
    z-index: 9999;
}

/* Print styles */
@media print {
    #left_sidebar,
    .d-print-none,
    .btn,
    .form-check-input {
        display: none !important;
    }

    #main_content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .table td, .table th {
        padding: 0.25rem 0.4rem;
        font-size: 0.8rem;
    }

    .task-title {
        max-width: none;
        white-space: normal;
    }
}

/* Deadline color coding */
.text-danger.fw-bold {
    /* Overdue deadlines */
}

/* Modal form tweaks */
.modal-body .form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Manage sources/targets list */
.list-group-item {
    padding: 0.5rem 0.75rem;
}
