/* Custom styles for the Project Management System */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: #eef2ff;
    --secondary-color: #64748b;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
    --info-color: #0891b2;
    --light-color: #f8fafc;
    --dark-color: #1e293b;

    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border-color: #e6e9f0;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-heading: #0f172a;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
}

/* ============================================================
   Terminal-inspired themes, picked via the settings menu.
   Each theme redefines the same custom properties used everywhere
   else in this file, plus a few theme-specific extras:
     --btn-glow / --btn-glow-hover / --focus-ring : accent-colored
       glows that replace the light theme's hardcoded indigo ones
     --btn-text : dark text for themes whose primary color is too
       bright for Bootstrap's default white button/badge text
       (omitted where white still reads fine, e.g. Solarized's blue)
   ============================================================ */

/* Green - classic phosphor CRT terminal */
body.theme-dark {
    --primary-color: #33ff66;
    --primary-hover: #7dffa3;
    --primary-soft: rgba(51, 255, 102, 0.16);
    --secondary-color: #4d9959;
    --success-color: #33ff66;
    --warning-color: #ffcc00;
    --danger-color: #ff4136;
    --info-color: #00e5c7;
    --light-color: #050805;
    --dark-color: #d6ffe0;

    --surface: #081008;
    --surface-muted: #0e1a0e;
    --border-color: #1f4d2a;
    --text-body: #33ff66;
    --text-muted: #4d9959;
    --text-heading: #7dffa3;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.65);

    --btn-glow: 0 2px 8px rgba(51, 255, 102, 0.3);
    --btn-glow-hover: 0 4px 14px rgba(51, 255, 102, 0.4);
    --focus-ring: 0 0 0 0.2rem rgba(51, 255, 102, 0.2);
    --btn-text: #04170a;
    --crt-glow: rgba(51, 255, 102, 0.45);
}

/* Amber - classic amber-phosphor CRT terminal */
body.theme-amber {
    --primary-color: #ffb000;
    --primary-hover: #ffc94d;
    --primary-soft: rgba(255, 176, 0, 0.18);
    --secondary-color: #b37700;
    --success-color: #ffcc33;
    --warning-color: #ff8800;
    --danger-color: #ff3300;
    --info-color: #ffe066;
    --light-color: #0d0800;
    --dark-color: #ffe6b3;

    --surface: #1a1000;
    --surface-muted: #241700;
    --border-color: #4d3300;
    --text-body: #ffb000;
    --text-muted: #b37700;
    --text-heading: #ffc94d;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.65);

    --btn-glow: 0 2px 8px rgba(255, 176, 0, 0.3);
    --btn-glow-hover: 0 4px 14px rgba(255, 176, 0, 0.4);
    --focus-ring: 0 0 0 0.2rem rgba(255, 176, 0, 0.2);
    --btn-text: #1a0f00;
    --crt-glow: rgba(255, 176, 0, 0.45);
}

/* Dracula - popular purple/pink/cyan terminal & editor theme */
body.theme-dracula {
    --primary-color: #bd93f9;
    --primary-hover: #d6acff;
    --primary-soft: rgba(189, 147, 249, 0.18);
    --secondary-color: #6272a4;
    --success-color: #50fa7b;
    --warning-color: #f1fa8c;
    --danger-color: #ff5555;
    --info-color: #8be9fd;
    --light-color: #282a36;
    --dark-color: #f8f8f2;

    --surface: #343746;
    --surface-muted: #3c3f52;
    --border-color: #44475a;
    --text-body: #f8f8f2;
    --text-muted: #6272a4;
    --text-heading: #ffffff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);

    --btn-glow: 0 2px 8px rgba(189, 147, 249, 0.3);
    --btn-glow-hover: 0 4px 14px rgba(189, 147, 249, 0.4);
    --focus-ring: 0 0 0 0.2rem rgba(189, 147, 249, 0.2);
    --btn-text: #1e1f29;
}

/* Solarized Dark - Ethan Schoonover's well-known low-contrast palette */
body.theme-solarized {
    --primary-color: #268bd2;
    --primary-hover: #4fa8e0;
    --primary-soft: rgba(38, 139, 210, 0.18);
    --secondary-color: #586e75;
    --success-color: #859900;
    --warning-color: #b58900;
    --danger-color: #dc322f;
    --info-color: #2aa198;
    --light-color: #002b36;
    --dark-color: #fdf6e3;

    --surface: #073642;
    --surface-muted: #0a4152;
    --border-color: #0f4a58;
    --text-body: #93a1a1;
    --text-muted: #586e75;
    --text-heading: #eee8d5;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);

    --btn-glow: 0 2px 8px rgba(38, 139, 210, 0.3);
    --btn-glow-hover: 0 4px 14px rgba(38, 139, 210, 0.4);
    --focus-ring: 0 0 0 0.2rem rgba(38, 139, 210, 0.2);
    /* medium-toned blue - Bootstrap's default white button text stays readable */
}

/* Nord - arctic, bluish-gray palette */
body.theme-nord {
    --primary-color: #88c0d0;
    --primary-hover: #8fbcbb;
    --primary-soft: rgba(136, 192, 208, 0.18);
    --secondary-color: #7b88a1;
    --success-color: #a3be8c;
    --warning-color: #ebcb8b;
    --danger-color: #bf616a;
    --info-color: #81a1c1;
    --light-color: #2e3440;
    --dark-color: #eceff4;

    --surface: #3b4252;
    --surface-muted: #434c5e;
    --border-color: #4c566a;
    --text-body: #d8dee9;
    --text-muted: #9aa5b8;
    --text-heading: #eceff4;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);

    --btn-glow: 0 2px 8px rgba(136, 192, 208, 0.3);
    --btn-glow-hover: 0 4px 14px rgba(136, 192, 208, 0.4);
    --focus-ring: 0 0 0 0.2rem rgba(136, 192, 208, 0.2);
    --btn-text: #1a1f27;
}

/* Rules shared by every dark-family theme (body.dark-mode, set alongside body.theme-*) */
body.dark-mode {
    font-weight: 500;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    font-weight: 800;
}

/* Accent-colored glows replacing the light theme's hardcoded indigo ones */
body.dark-mode .btn-primary {
    box-shadow: var(--btn-glow);
}

body.dark-mode .btn-primary:hover,
body.dark-mode .btn-primary:focus {
    box-shadow: var(--btn-glow-hover);
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    box-shadow: var(--focus-ring);
}

/* Bright primary colors need dark text, not Bootstrap's default white
   (scoped away from .navbar.bg-primary, which keeps its own dark gradient + white text) */
body.dark-mode .btn-primary,
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-primary:focus,
body.dark-mode .badge.bg-primary,
body.dark-mode .card-header.bg-primary {
    color: var(--btn-text, #fff) !important;
}

/* CRT phosphor look (monospace font + heading glow) - only the two "real terminal" themes */
body.theme-dark, body.theme-amber {
    font-family: 'Courier New', 'Consolas', monospace;
}

body.theme-dark h1, body.theme-dark h2, body.theme-dark .navbar-brand,
body.theme-amber h1, body.theme-amber h2, body.theme-amber .navbar-brand {
    text-shadow: 0 0 8px var(--crt-glow);
}

* {
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--text-body);
    min-height: 100vh;
    letter-spacing: -0.011em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-hover);
}

/* Bring Bootstrap's "primary" utility classes in line with the new palette */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Navigation */
.navbar.bg-primary {
    background: linear-gradient(100deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%) !important;
    box-shadow: 0 2px 20px rgba(30, 27, 75, 0.25);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.9rem !important;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

/* Cards */
.card {
    background-color: var(--surface);
    color: var(--text-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-heading);
    border-top-left-radius: var(--radius-md) !important;
    border-top-right-radius: var(--radius-md) !important;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.1rem;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--surface-muted);
    border-color: var(--secondary-color);
    color: var(--text-body);
}

.btn-group-sm > .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Forms */
.form-control, .form-select {
    background-color: var(--surface);
    color: var(--text-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-body);
    font-size: 0.9rem;
}

/* Tables */
.table {
    background-color: var(--surface);
}

.table th {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.85rem 0.75rem;
}

.table td {
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table-hover tbody tr:hover {
    background-color: var(--primary-soft);
}

/* Flag tasks with no due date set */
.task-missing-due {
    background-color: #fde3ec;
}

.table-hover tbody tr.task-missing-due:hover {
    background-color: #fbd2e2;
}

.list-group-item.task-missing-due {
    background-color: #fde3ec;
}

.list-group-item.task-missing-due:hover {
    background-color: #fbd2e2;
}

body.dark-mode .task-missing-due,
body.dark-mode .list-group-item.task-missing-due {
    background-color: #3a1f2b;
}

body.dark-mode .table-hover tbody tr.task-missing-due:hover,
body.dark-mode .list-group-item.task-missing-due:hover {
    background-color: #4a2635;
}

/* Badges */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.4em 0.7em;
    border-radius: 999px;
}

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 999px;
    background-color: var(--border-color);
}

.progress-bar {
    border-radius: 999px;
    background-color: var(--primary-color);
}

/* Status colors */
.status-active { color: var(--success-color); }
.status-on-hold { color: var(--warning-color); }
.status-completed { color: var(--info-color); }
.status-todo { color: var(--secondary-color); }
.status-in-progress { color: var(--warning-color); }

/* Priority colors */
.priority-low { color: var(--secondary-color); }
.priority-medium { color: var(--warning-color); }
.priority-high { color: var(--danger-color); }

/* Dashboard statistics cards */
.card.text-white {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.card.text-white.bg-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%) !important;
}

.card.text-white.bg-info {
    background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%) !important;
}

.card.text-white.bg-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
}

.card.text-white.bg-success {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%) !important;
}

.card.text-white .card-title {
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.92;
}

.card.text-white h2 {
    font-weight: 800;
    color: #ffffff;
}

.card.text-white .card-body {
    position: relative;
    overflow: hidden;
}

.card.text-white .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.card.text-white .fa-2x {
    opacity: 0.85;
}

/* List groups */
.list-group-item {
    background-color: var(--surface);
    color: var(--text-body);
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0.25rem;
    transition: background-color 0.15s ease-in-out;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: var(--surface-muted);
}

/* Empty states */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state i {
    opacity: 0.4;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1.25rem;
}

/* Dropdowns (notification bell + nav menus) */
.dropdown-menu {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-body);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-soft);
}

.dropdown-header {
    font-weight: 700;
    color: var(--text-heading);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

body.dark-mode footer.bg-light {
    background-color: var(--surface) !important;
}

body.dark-mode .text-muted {
    color: var(--text-muted) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group.w-100 .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Sidebar becomes an offcanvas drawer (from the right) below the lg breakpoint */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1045;
        transform: translateX(100%);
        transition: transform 0.2s ease-in-out;
        visibility: hidden;
        box-shadow: var(--shadow-lg);
    }

    .app-sidebar.show {
        transform: translateX(0);
        visibility: visible;
    }

    .app-sidebar.showing,
    .app-sidebar.hiding {
        visibility: visible;
    }

    body.sidebar-left .app-sidebar {
        right: auto;
        left: 0;
        transform: translateX(-100%);
    }

    body.sidebar-left .app-sidebar.show {
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    /* Task rows - keep checkbox/flag/title on the first line, push edit/delete to their own line */
    .task-row {
        flex-wrap: wrap;
    }

    .task-row .task-body {
        flex-basis: 0;
    }

    .task-row-actions {
        margin-left: auto;
        margin-top: 0.35rem;
    }

    /* Page header rows (title + action buttons) - stack instead of overlapping */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 > div {
        width: 100%;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 .btn {
        width: 100%;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 > div.d-flex {
        flex-wrap: wrap;
    }

    /* Task/project list rows - stack the status/priority control below the text */
    .list-group-item.d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
    }

    .list-group-item.d-flex.justify-content-between.align-items-center select {
        width: 100%;
    }

    /* Quick-add box: stack input above button instead of squeezing both */
    form.d-flex.gap-2 {
        flex-wrap: wrap;
    }

    form.d-flex.gap-2 input {
        flex: 1 1 100%;
    }

    form.d-flex.gap-2 button {
        flex: 1 1 100%;
    }
}

/* Animation for loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-muted);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #3d4254;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #4d5468;
}

/* Bootstrap's default <select> caret is a dark stroke - swap for a light one in dark mode */
body.dark-mode .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Task status select styling */
.task-status {
    border: 1px solid var(--border-color);
    background-color: var(--surface-muted);
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.task-status:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Task priority select styling */
.task-priority {
    border: 1px solid var(--border-color);
    background-color: var(--surface-muted);
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.task-priority:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* App shell: main content + nav rail on the right */
.app-shell {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 70px);
}

.app-sidebar {
    order: 2;
    width: 240px;
    flex-shrink: 0;
    background-color: var(--surface);
    border-left: 1px solid var(--border-color);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.app-content {
    order: 1;
    flex: 1;
    min-width: 0;
}

/* Nav pane position, user-configurable via the settings menu */
body.sidebar-left .app-sidebar {
    order: 0;
    border-left: none;
    border-right: 1px solid var(--border-color);
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out;
}

.sidebar-nav-link:hover {
    background-color: var(--surface-muted);
    color: var(--text-body);
}

.sidebar-nav-link.active {
    background-color: var(--primary-soft);
    color: var(--primary-color);
}

.sidebar-project-link {
    font-weight: 500;
}

.sidebar-section-label {
    margin-top: 1rem;
    padding: 0.5rem 0.75rem 0.25rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.sidebar-project-progress {
    width: 40px;
}

.sidebar-project-progress .progress {
    height: 4px;
}

.side-panel {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 0.75rem;
}

/* Blend into the left nav rail instead of looking like a nested card */
.app-sidebar .side-panel {
    background-color: transparent;
    border: none;
    padding: 0;
}

/* Reduced-chrome card variant for task list containers */
.card-plain {
    box-shadow: none;
    border-color: var(--border-color);
}

/* Flat task-row list (Todoist-style checkbox + flag) */
.task-row {
    padding: 0.65rem 0.5rem;
}

.task-complete-toggle {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    flex-shrink: 0;
}

.task-complete-toggle:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.priority-flag {
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1.15rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    transition: transform 0.15s ease-in-out;
}

.priority-flag:hover {
    transform: scale(1.15);
}

.task-body {
    min-width: 0;
}

.task-row-actions {
    flex-shrink: 0;
}

.task-completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Gantt chart container */
#gantt_here {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Print styles */
@media print {
    .navbar, .btn, .card-footer {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    body {
        background-color: white !important;
    }
}
