:root {
            --bg-color: #f4f4f5;
            --sidebar-bg: #ffffff;
            --card-bg: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --border-color: #e2e8f0;
            --input-bg: #ffffff;
            --modal-overlay: rgba(0, 0, 0, 0.5);
            --sidebar-hover: #f1f5f9;
            --accent-color: #2563eb;
            --accent-hover: #1d4ed8;
            --table-header-bg: #f8fafc;
            --toast-bg: #ffffff;
            --toast-text: #1f2937;
        }

        [data-theme="dark"] {
            --bg-color: #0f172a;
            --sidebar-bg: #1e293b;
            --card-bg: #1e293b;
            --text-main: #f1f5f9;
            --text-muted: #94a3b8;
            --border-color: #334155;
            --input-bg: #0f172a;
            --modal-overlay: rgba(0, 0, 0, 0.8);
            --sidebar-hover: #334155;
            --table-header-bg: #1e293b;
            --toast-bg: #1e293b;
            --toast-text: #f1f5f9;
        }

        body { font-family: system-ui, sans-serif; background: var(--bg-color); color: var(--text-main); margin: 0; display: flex; height: 100vh; overflow: hidden; transition: background 0.3s, color 0.3s; }
        
        #impersonate-banner { display: none; background: #dc2626; color: white; padding: 10px; text-align: center; font-weight: bold; width: 100%; position: fixed; top: 0; left: 0; z-index: 1000; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
        
        /* SIDEBAR STYLES */
        .sidebar {
            width: 60px;
            background: var(--sidebar-bg);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 20px;
            transition: width 0.3s ease, background 0.3s, border 0.3s;
            z-index: 1000;
            position: relative;
            overflow-x: hidden;
        }
        
        .sidebar.expanded { width: 240px; align-items: flex-start; }
        
        .hamburger-btn {
            background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); margin-bottom: 20px; width: 100%; text-align: center;
        }
        
        .menu-item {
            width: 100%;
            padding: 15px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-muted);
            transition: background 0.2s, color 0.2s;
            position: relative;
            box-sizing: border-box;
        }
        
        .menu-item i { font-size: 1.5rem; }
        
        .menu-item span {
            display: none;
            margin-left: 15px;
            font-size: 1rem;
            font-weight: 500;
            white-space: nowrap;
        }
        
        .sidebar.expanded .menu-item { justify-content: flex-start; padding-left: 20px; }
        .sidebar.expanded .menu-item span { display: inline-block; }
        .sidebar.expanded .hamburger-btn { text-align: left; padding-left: 20px; }

        .menu-item:hover, .menu-item.active { background: var(--sidebar-hover); color: var(--accent-color); border-left: 3px solid var(--accent-color); }
        .menu-item:not(.active) { border-left: 3px solid transparent; }

        .menu-item-danger:hover { color: #dc2626 !important; border-left-color: #dc2626 !important; }
        .menu-item-danger i { color: #dc2626; }

        /* MAIN CONTENT AREA */
        .main-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            margin-top: 0; 
        }
        
        /* Card & General Styles */
        .card { background: var(--card-bg); padding: 0; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); width: 100% !important; max-width: none !important; margin: 0 auto 20px auto; overflow: hidden; transition: background 0.3s; }
        .card-content { padding: 30px 30px 0px 30px; }
        
        /* Mobile-First Input Styling */
        input, button, select { width: 100%; padding: 12px; margin: 5px 0 15px 0; border: 1px solid var(--border-color); border-radius: 6px; box-sizing: border-box; font-size: 1rem; background: var(--input-bg); color: var(--text-main); }
        label { display: block; margin-bottom: 2px; font-size: 0.85em; font-weight: bold; color: var(--text-muted); }
        
        /* Input error spacing fix */
        input.input-error { border-color: #dc2626; background-color: rgba(220, 38, 38, 0.1); }
        .field-error { color: #dc2626; font-size: 0.8em; margin-top: -12px; margin-bottom: 10px; min-height: 1.2em; display: none; }
        .field-error.visible { display: block; }
        
        button { background: var(--accent-color); color: white; border: none; cursor: pointer; font-weight: bold; transition: background 0.2s; margin-top: 5px; }
        button:hover { background: var(--accent-hover); }
        button:disabled { background: #cbd5e1; cursor: not-allowed; }
        
        /* Big Clock Buttons */
        .clock-btn { 
            padding: 20px !important; 
            font-size: 1.2rem !important; 
            margin-bottom: 15px !important;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .alert { color: #dc2626; font-size: 0.9em; margin-bottom: 10px; font-weight: 500; }
        .success { color: #16a34a; font-size: 0.9em; margin-bottom: 10px; font-weight: 500; }
        a { color: var(--accent-color); text-decoration: none; font-weight: 500; }
        a:hover { text-decoration: underline; }
        
        /* Tables */
        .table-container { position: relative; max-height: 600px; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 8px; margin-top: 15px; background: var(--card-bg); }
        table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9em; min-width: 600px; }
        th { position: sticky; top: 0; z-index: 10; background-color: var(--table-header-bg); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; border-bottom: 2px solid var(--border-color); text-align: left; padding: 4px 6px; }
        td { padding: 4px 8px; border-bottom: 1px solid var(--border-color); color: var(--text-main); font-size: 0.95rem; text-align: left; }
        tr:hover td { background-color: var(--sidebar-hover); }
        tr:last-child td { border-bottom: none; }
        
        /* Tab Views */
        .tab-view { display: none; }
        .tab-view.active { display: block; animation: fadeIn 0.2s ease-in-out; }
        
        @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

        /* Status Badges */
        .badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1; }
        .badge-success { background-color: rgba(34, 197, 94, 0.1); color: #16a34a; border: 1px solid rgba(34, 197, 94, 0.2); }
        .badge-danger { background-color: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2); }
        .badge-active { background-color: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); position: relative; margin-left: 10px; }
        .badge-active::before { content: ""; display: inline-block; width: 6px; height: 6px; background-color: #22c55e; border-radius: 50%; margin-right: 6px; animation: pulse 2s infinite; }
        @keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

        /* Toast Notifications */
        .toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10010; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; width: 90%; max-width: 400px; }
        .toast { pointer-events: auto; background: var(--toast-bg); color: var(--toast-text); border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-left: 4px solid var(--accent-color); transform: translateY(-150%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
        .toast.show { transform: translateY(0); }
        .toast-success { border-left-color: #16a34a; }
        .toast-error { border-left-color: #dc2626; color: #dc2626; }
        .toast i { font-size: 1.25rem; }
        .toast-content { font-size: 0.9rem; font-weight: 500; color: inherit; }

        .admin-badge { background: #4f46e5; color: white; padding: 2px 8px; border-radius: 999px; font-size: 0.7em; margin-left: 10px; vertical-align: middle;}
        .form-group { background: var(--sidebar-hover); border: 1px solid var(--border-color); padding: 20px; border-radius: 8px; margin-bottom: 25px; }
        .flex-row { display: flex; gap: 15px; }
        .flex-item { flex: 1; }
        
        .date-filter-row { display: flex; align-items: center; gap: 10px; }
        .date-filter-row input { margin: 0; }
        .date-filter-row button { margin: 0; width: auto; padding: 10px 15px; }
        
        .required-star { color: #dc2626; margin-left: 2px; }

        /* Button Variants */
        .btn-action { padding: 6px 12px; font-size: 0.8em; width: auto; display: inline-block; text-align: center; margin: 0 2px; border-radius: 4px; cursor: pointer; }
        
        .btn-danger { background: #dc2626; color: white; border: none; cursor: pointer; }
        .btn-danger:hover { background: #b91c1c; }
        .btn-warning { background: #f59e0b; color: white; border: none; cursor: pointer; }
        .btn-warning:hover { background: #d97706; }
        .btn-info { background: #3b82f6; color: white; border: none; cursor: pointer; width: auto; padding: 4px 8px; font-size: 0.75em; margin: 0 2px; display: inline-block; border-radius: 4px; text-align: center; }
        .btn-info:hover { background: #2563eb; }
        
        .btn-success { background: #059669; width: auto; padding: 8px 15px; font-size: 0.85em; margin: 0; }
        .btn-success:hover { background: #047857; }
        
        .btn-secondary { 
            background: #64748b; 
            color: white;
            border: none;
            cursor: pointer;
            width: auto; 
            padding: 4px 8px; 
            font-size: 0.7em; 
            margin: 0 2px; 
            display: inline-block; 
            border-radius: 4px;
            text-align: center;
        }
        .btn-secondary:hover { background: #475569; }
        
        .section-header .btn-secondary, .section-header .btn-success, .section-header .btn-info { padding: 8px 15px; font-size: 0.85em; }

        .directory-btn { width: 60px; padding: 6px 0; font-size: 0.75em; display: inline-block; text-align: center; margin: 0 2px; }
        
        .impersonate-btn-sm { background: #f59e0b; padding: 5px 10px; font-size: 0.75em; width: auto; margin: 0; }
        .section-header { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
        .summary-row { font-weight: bold; background-color: var(--sidebar-hover); border-top: 2px solid var(--border-color); }

        /* MODAL STYLES */
        .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--modal-overlay); z-index: 10005; justify-content: center; align-items: center; transition: background 0.3s; }
        .modal { background: var(--card-bg); padding: 30px; border-radius: 8px; width: 90%; max-width: 800px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); max-height: 90vh; overflow-y: auto; color: var(--text-main); }
        .modal h3 { margin-top: 0; }
        .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
        
        /* Audit details styling */
        .audit-change-block { font-size: 0.85em; background: var(--bg-color); padding: 8px; border-radius: 4px; margin-top: 5px; border: 1px solid var(--border-color); display: block; width: 100%; box-sizing: border-box; }
        .audit-val { font-family: monospace; font-weight: bold; color: var(--accent-color); }
        .audit-arrow { color: var(--text-muted); margin: 0 8px; font-weight: bold; }
        
        .status-container { display: flex; gap: 20px; margin-bottom: 30px; }
        .status-column { flex: 1; background: var(--sidebar-hover); padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); }
        .status-list { list-style: none; padding: 0 10px 0 0; margin: 0; max-height: 180px; overflow-y: auto; }
        .status-list li { padding: 8px 0; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; }
        .status-list li:last-child { border-bottom: none; }
        
        .break-edit-row { background: var(--sidebar-hover); padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 5px; }

        .break-delete-btn { background: #dc2626; color: white; border: none; padding: 6px; border-radius: 4px; font-size: 0.8em; cursor: pointer; width: 100%; margin-top: 8px; }
        .break-delete-btn:hover { background: #b91c1c; }
        
        .nav-arrow-btn { padding: 10px; background: var(--sidebar-hover); color: var(--text-main); border: 1px solid var(--border-color); font-weight: bold; cursor: pointer; width: auto; margin: 0; }
        .nav-arrow-btn:hover { background: var(--border-color); }

        input[type=number]::-webkit-inner-spin-button, 
        input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
        input[type=number] { -moz-appearance: textfield; }

        /* Make arrows visible only for specific inputs */
        input[type=number].show-arrows::-webkit-inner-spin-button, 
        input[type=number].show-arrows::-webkit-outer-spin-button { -webkit-appearance: auto; margin: 0; }
        input[type=number].show-arrows { -moz-appearance: auto; }

        /* Map specific */
        #map-container { width: 100%; height: 100%; }

        @media (max-width: 600px) {
            body { padding: 0; flex-direction: column; height: auto; overflow: auto; }
            .sidebar { 
                width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); 
                flex-direction: row; padding: 10px; justify-content: space-around;
            }
            .sidebar.expanded { width: 100%; height: auto; }
            .hamburger-btn { display: none; }
            .menu-item { padding: 10px; }
            .menu-item span { display: none !important; }
            
            .main-content { padding: 10px; margin-top: 0; }
            .card { margin-top: 10px; width: 100%; border-radius: 4px; }
            .card-content { padding: 15px; }
            .flex-row { flex-direction: column; gap: 0; }
            .status-container { flex-direction: column; gap: 10px; }
            .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
            .section-header div { width: 100%; display: flex; gap: 10px; }
            .section-header button { flex: 1; }
            .modal { width: 95%; padding: 20px; }
            .modal-actions { flex-direction: column-reverse; }
            .modal-actions.modal-actions-fixed { flex-direction: row !important; gap: 8px; flex-wrap: nowrap; justify-content: flex-start; }
            .modal-actions.modal-actions-fixed button { width: auto !important; height: 38px !important; margin: 0 !important; padding: 0 10px !important; }
            .modal-actions.modal-actions-fixed button span { display: inline !important; }
            .modal-actions button { width: 100%; margin: 5px 0; }
            
            /* Revert Date Filter to row flex */
            .date-filter-row { flex-wrap: nowrap; justify-content: flex-start; }
            .date-filter-row input { width: auto; margin: 0; }
            .date-filter-actions { margin-left: auto; }
            
            .nav-arrow-btn { padding: 8px; }
            table { font-size: 0.8rem; }
            th, td { padding: 6px 3px; }
            td { white-space: nowrap; }
            td:nth-child(5) { white-space: normal; min-width: 100px; } 

            /* Mobile Dashboard Header Fix */
            .dashboard-header { flex-direction: column !important; align-items: flex-start !important; gap: 15px !important; }
            .dashboard-header div { width: 100%; display: flex; flex-wrap: wrap; gap: 10px; }
            .dashboard-header .summary-box { justify-content: flex-start !important; text-align: left !important; }
            .dashboard-header .summary-box > div { flex-direction: column; align-items: flex-start !important; }

            /* Mobile Logout Timer Position */
            #kiosk-logout-timer { top: auto !important; bottom: 20px !important; }
        }

        /* Multi-select Pill Styles */
        .selected-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
        .pill { background: rgba(37, 99, 235, 0.1); color: var(--accent-color); border: 1px solid var(--accent-color); padding: 2px 8px; border-radius: 999px; font-size: 0.85em; display: flex; align-items: center; gap: 5px; }
        .pill i { cursor: pointer; color: var(--accent-color); font-weight: bold; }
        .pill i:hover { color: var(--accent-hover); }
        .dropdown-results { position: absolute; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 6px; width: 100%; max-height: 150px; overflow-y: auto; z-index: 10; display: none; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
        .dropdown-item { padding: 8px 12px; cursor: pointer; font-size: 0.9em; color: var(--text-main); }
        .dropdown-item:hover { background: var(--sidebar-hover); color: var(--accent-color); }

        /* Status Dots */
        .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
        .dot-green { background-color: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2); }
        .dot-yellow { background-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }
        .dot-gray { background-color: #94a3b8; }

        /* Scheduling Grid Styles */
        .schedule-matrix { table-layout: fixed; border-spacing: 0; width: 100%; border-right: 1px solid var(--border-color); }
        .schedule-matrix th { background: var(--bg-secondary); color: var(--text-muted); font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 10px; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

        /* Column Widths */
        .schedule-matrix th:nth-child(1), .schedule-matrix td:nth-child(1) { width: 200px; text-align: left; } /* Employee */
        .schedule-matrix th:not(:first-child):not(:last-child), .schedule-matrix td:not(:first-child):not(:last-child) { width: 120px; } /* Days */
        .schedule-matrix th:last-child, .schedule-matrix td:last-child { width: 100px; text-align: center; } /* Weekly Total */

        .schedule-matrix td { border-bottom: 1px solid var(--border-color); border-right: 1px solid var(--border-color); padding: 0; height: 140px; vertical-align: top; }
        .schedule-matrix td:first-child { background: var(--bg-secondary); border-right: 2px solid var(--border-color); padding: 15px 20px; vertical-align: middle; height: auto; }
        .schedule-matrix td:last-child { background: var(--bg-secondary); border-right: none; vertical-align: middle; text-align: center; font-weight: 600; color: var(--text-primary); height: auto; }

        .employee-row-info { display: flex; flex-direction: column; gap: 8px; width: 100%; }
        .employee-name-cell { font-weight: 600; color: var(--text-primary); font-size: 0.95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }        .btn-copy-forward { font-size: 0.7em; background: none; border: 1px solid var(--accent-color); color: var(--accent-color); padding: 4px 8px; border-radius: 4px; cursor: pointer; transition: all 0.2s; width: fit-content; display: flex; align-items: center; gap: 4px; }
        .btn-copy-forward:hover { background: var(--accent-color); color: white; }

        .schedule-cell { width: 100%; height: 100%; display: flex; flex-direction: column; cursor: pointer; transition: background 0.2s; position: relative; min-height: 140px; }
        .schedule-cell:hover { background: var(--bg-secondary); }

        .cell-off { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); opacity: 0.5; min-height: 140px; }
        .cell-off i { font-size: 1.2rem; margin-bottom: 4px; }
        .cell-off span { font-size: 0.7em; }

        .shift-card { margin: 0; padding: 12px; font-size: 0.8em; display: flex; flex-direction: column; gap: 5px; box-shadow: none; flex: 1; border-radius: 0; width: 100%; box-sizing: border-box; }
        .shift-card.draft { background: #fef3c7; border-left: 4px solid #f59e0b; color: #92400e; }
        .shift-card.published { background: #dcfce7; border-left: 4px solid #16a34a; color: #166534; }

        .shift-time { font-weight: 700; display: flex; align-items: center; gap: 4px; }
        .shift-pos { opacity: 0.8; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .shift-hours { margin-top: auto; font-size: 0.9em; font-weight: 600; }

        .status-badge { font-size: 0.65em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; font-weight: 700; width: fit-content; margin-top: 4px; }
        .status-badge.draft { background: #f59e0b; color: white; }
        .status-badge.published { background: #16a34a; color: white; }

        #publish-dropdown div:hover, .dropdown-results .dropdown-option:hover, .dropdown-results .employee-option:hover, .dropdown-results div.highlighted { background: var(--accent-color) !important; color: white !important; }
        .dropdown-results div:hover { background: var(--sidebar-hover); color: var(--accent-color); }

        /* Requirement Items */
        .req-item { display: flex; align-items: center; gap: 8px; color: var(--text-muted); margin-bottom: 2px; }
        .req-item.valid { color: #16a34a; }
        .req-item.valid i { color: #16a34a; font-weight: bold; }
        .req-item i { font-size: 1.1em; }

        /* PRINT STYLES */
        @media print {
            /* Hide everything by default */
            body > *:not(#print-zone) {
                display: none !important;
            }

            /* Ensure print-zone is visible and positioned correctly */
            #print-zone {
                display: block !important;
                visibility: visible !important;
                position: relative;
                width: 100%;
                margin: 0;
                padding: 0;
            }

            /* Re-enable visibility for children of print-zone */
            #print-zone * {
                visibility: visible !important;
            }

            /* Basic page settings */
            @page {
                size: landscape;
                margin: 1cm;
            }

            body, html {
                height: auto !important;
                overflow: visible !important;
                background: white !important;
            }
        }
.provider-toggle { display: flex; gap: 10px; font-size: 0.85em; } .provider-toggle label { display: flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }

/* Drag-to-Copy Styles */
.shift-card.draft {
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.shift-card.draft:active {
    cursor: grabbing;
}

.schedule-cell.shift-drag-target {
    background-color: rgba(37, 99, 235, 0.1) !important;
    outline: 2px dashed var(--accent-color);
    outline-offset: -2px;
    z-index: 10;
}

body.dragging-shift {
    cursor: grabbing !important;
    user-select: none !important;
}

body.dragging-shift * {
    pointer-events: auto; /* Ensure cells still receive mouseenter */
}

/* Company Settings Grid & Cards Layout */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: background 0.3s, border 0.3s;
}

.settings-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin: 0 0 5px 0;
}

.settings-card-title i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.settings-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -5px;
    line-height: 1.4;
}

.settings-card .form-group {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.settings-card input, 
.settings-card select {
    margin-top: 5px;
    margin-bottom: 5px;
}

.settings-card .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.settings-card .checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.settings-card .checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 3px 0 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

.settings-card .checkbox-item label {
    margin: 0;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1.3;
}

.settings-card .checkbox-sub-item {
    margin-left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: var(--text-muted);
}

.settings-card .checkbox-sub-item input {
    margin: 0;
}

.settings-full-width {
    grid-column: 1 / -1;
}

.settings-save-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 25px;
}

.settings-save-bar button {
    width: auto;
    min-width: 150px;
    margin: 0;
    padding: 12px 24px;
}

@media (max-width: 950px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

