:root {
    /* Colors - Dark Theme (Default) */
    --bg-main: #0a0c16;
    --bg-sidebar: rgba(15, 23, 42, 0.85);
    --bg-topbar: rgba(15, 23, 42, 0.7);
    --bg-surface: rgba(30, 41, 59, 0.6);
    --bg-surface-hover: rgba(51, 65, 85, 0.6);
    --bg-surface-active: rgba(71, 85, 105, 0.6);
    --bg-input: rgba(15, 23, 42, 0.7);
    --bg-input-focus: rgba(15, 23, 42, 0.95);
    
    /* Accents */
    --accent-primary: #7c3aed;
    --accent-primary-hover: #8b5cf6;
    --accent-secondary: #06b6d4;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #f43f5e;
    --critical: #f43f5e;
    --high: #f97316;
    --medium: #3b82f6;
    --low: #64748b;
    
    /* Typography Colors - Dark */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(124, 58, 237, 0.5);
    
    /* Kanban theme variables */
    --bg-kanban-column: rgba(15, 23, 42, 0.6);
    --bg-kanban-card: rgba(30, 41, 59, 0.7);
    --border-kanban: rgba(255, 255, 255, 0.06);
    --border-kanban-hover: rgba(124, 58, 237, 0.4);
    --card-checkbox-border: rgba(255, 255, 255, 0.3);
    
    /* Spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    
    /* Border Radius */
    --br-sm: 6px;
    --br-md: 10px;
    --br-lg: 14px;
    --br-xl: 20px;
    --br-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px rgba(124, 58, 237, 0.3);
    
    /* Transitions */
    --tr-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --tr-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --tr-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --sidebar-width: 260px;
}

:root.light-theme {
    /* Colors - Light Theme Overrides */
    --bg-main: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-topbar: rgba(255, 255, 255, 0.9);
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-surface-active: #e2e8f0;
    --bg-input: #ffffff;
    --bg-input-focus: #ffffff;
    
    /* Typography Colors - Light */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    
    /* Borders */
    --border-color: #e2e8f0;
    --border-focus: rgba(124, 58, 237, 0.4);
    
    /* Kanban theme variables */
    --bg-kanban-column: #f1f5f9;
    --bg-kanban-card: #ffffff;
    --border-kanban: #e2e8f0;
    --border-kanban-hover: #cbd5e1;
    --card-checkbox-border: #94a3b8;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 15px rgba(124, 58, 237, 0.12);
}

/* Base Styles & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { 
    font-family: inherit; 
    border: none; 
    outline: none; 
    background: none; 
}
button { cursor: pointer; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-hover);
    border-radius: var(--br-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bg-surface-active);
}

/* Layout container */
#app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-md);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform var(--tr-normal);
    z-index: 50;
    flex-shrink: 0;
}

.sidebar-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sp-6);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.app-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.sidebar-action {
    padding: var(--sp-6) var(--sp-6) 0 var(--sp-6);
}

.btn-new-task-sidebar {
    width: 100%;
    height: 44px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: var(--sp-6) var(--sp-4);
    overflow-y: auto;
}

.nav-item {
    margin-bottom: var(--sp-2);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--br-md);
    color: var(--text-secondary);
    transition: all var(--tr-fast);
    position: relative;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
    box-shadow: inset 4px 0 0 var(--accent-primary);
}

.nav-icon {
    font-size: 20px;
    margin-right: var(--sp-3);
}

.nav-badge {
    margin-left: auto;
    font-size: 11px;
    background: var(--bg-surface-active);
    padding: 2px 6px;
    border-radius: var(--br-full);
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 600;
}

.nav-item.disabled .nav-link {
    opacity: 0.5;
    cursor: not-allowed;
}
.nav-item.disabled .nav-link:hover {
    background: transparent;
}

.sidebar-footer {
    padding: var(--sp-2) var(--sp-6) var(--sp-4) var(--sp-6);
    font-size: 12px;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Top Bar */
.top-bar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sp-8);
    background: var(--bg-topbar);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.page-title {
    font-size: 20px;
    font-weight: 600;
}

.current-date {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.mobile-only {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0 var(--sp-5);
    height: 40px;
    border-radius: var(--br-md);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--tr-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #6d28d9);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover), var(--accent-primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

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

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255,255,255,0.2);
}

.btn-danger {
    background: var(--error);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
    background: #e11d48;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--br-full);
    color: var(--text-secondary);
    transition: all var(--tr-fast);
}

.icon-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* Views */
.view-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-8);
    position: relative;
}

.view-section {
    display: none;
    animation: fadeIn var(--tr-normal);
}

.view-section.active-view {
    display: block;
}

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

/* Today's Todo Specifics */
.progress-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-6);
    margin-bottom: var(--sp-8);
}

.progress-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--sp-1);
}

.progress-info p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.progress-ring-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-fill {
    transition: stroke-dashoffset 1s ease-in-out;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
}

/* Task Sections */
.task-section {
    margin-bottom: var(--sp-8);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-4);
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.overdue-header h3 {
    color: var(--warning);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-6);
    margin-bottom: var(--sp-8);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--sp-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--sp-2);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label.required::after {
    content: '*';
    color: var(--error);
    margin-left: 2px;
}

.form-row {
    display: flex;
    gap: var(--sp-4);
}

.form-group.half, .form-row .half {
    flex: 1;
}

.form-input, .form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--br-md);
    padding: 0 var(--sp-4);
    height: 44px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--tr-fast);
}

.form-input:focus, .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
    background: var(--bg-input-focus);
}

.form-textarea {
    height: 100px;
    padding: var(--sp-3) var(--sp-4);
    resize: none;
}

.form-select option {
    background: var(--bg-main);
    color: var(--text-primary);
}

/* Recurrence Grid */
.recurrence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
}

.recurrence-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--br-md);
    padding: var(--sp-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    cursor: pointer;
    transition: all var(--tr-fast);
}

.recurrence-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255,255,255,0.2);
}

.recurrence-card.active {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--accent-primary);
    box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.rec-icon {
    font-size: 24px;
}

.rec-label {
    font-size: 12px;
    font-weight: 500;
}

.recurrence-config-area {
    margin-top: var(--sp-4);
    padding: var(--sp-4);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--br-md);
    border: 1px solid var(--border-color);
}

.config-section {
    display: none;
}
.config-section.active {
    display: block;
    animation: fadeIn var(--tr-fast);
}

.config-message {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Day Selector */
.day-selector {
    display: flex;
    gap: var(--sp-2);
    margin-top: var(--sp-2);
}

.day-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--br-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    transition: all var(--tr-fast);
}

.day-toggle:hover {
    background: var(--bg-surface-hover);
}

.day-toggle.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Radio & Checkbox */
.radio-group {
    display: flex;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
}

.radio-label, .checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 14px;
    cursor: pointer;
}

input[type="radio"], input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--text-tertiary);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

input[type="checkbox"] {
    border-radius: 4px;
}

input[type="radio"]:checked, input[type="checkbox"]:checked {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--tr-normal);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-container {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform var(--tr-normal);
}

.modal-overlay.hidden .modal-container {
    transform: translateY(20px);
}

.confirm-modal {
    max-width: 400px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-5) var(--sp-6);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2, .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: var(--sp-6);
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--sp-3);
    padding: var(--sp-5) var(--sp-6);
    border-top: 1px solid var(--border-color);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: var(--sp-12) var(--sp-6);
    color: var(--text-tertiary);
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--sp-2);
}

/* ============================================
   TASK CARDS (Today's Todo)
   ============================================ */
.task-card, .task-def-card {
    display: flex;
    align-items: stretch;
    border-radius: var(--br-lg);
    overflow: hidden;
    transition: all var(--tr-normal);
    opacity: 0;
    transform: translateY(10px);
    animation: cardEnter 0.4s ease forwards;
}

.task-card:hover, .task-def-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(124, 58, 237, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

@keyframes cardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Priority left border */
.task-card-priority, .task-def-priority {
    width: 4px;
    flex-shrink: 0;
}

/* Card content area */
.task-card-content, .task-def-content {
    flex: 1;
    padding: var(--sp-4) var(--sp-5);
    min-width: 0;
}

.task-card-header, .task-def-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-2);
}

.task-card-title, .task-def-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.task-card-desc, .task-def-content p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: var(--sp-2);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges */
.task-card-badges, .task-def-badges {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-recurrence {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-priority {
    border: 1px solid;
}

.badge-critical {
    background: rgba(244, 63, 94, 0.12);
    color: var(--critical);
    border-color: rgba(244, 63, 94, 0.25);
}

.badge-high {
    background: rgba(249, 115, 22, 0.12);
    color: var(--high);
    border-color: rgba(249, 115, 22, 0.25);
}

.badge-medium {
    background: rgba(59, 130, 246, 0.12);
    color: var(--medium);
    border-color: rgba(59, 130, 246, 0.25);
}

.badge-low {
    background: rgba(100, 116, 139, 0.12);
    color: var(--low);
    border-color: rgba(100, 116, 139, 0.25);
}

.badge-status {
    border: 1px solid;
}

.badge-status.active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.25);
}

.badge-status.paused {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.25);
}

/* Tags */
.task-card-tags, .task-def-tags {
    display: flex;
    gap: var(--sp-1);
    flex-wrap: wrap;
    margin-top: var(--sp-2);
}

.tag-pill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-primary-hover);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

/* Task Meta (My Tasks) */
.task-def-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-top: var(--sp-2);
    font-size: 12px;
    color: var(--text-muted);
}

.task-def-meta span {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

/* Card Actions */
.task-card-actions, .task-def-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3);
    flex-shrink: 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--br-full);
    font-size: 16px;
    transition: all var(--tr-fast);
    color: var(--text-tertiary);
}

.action-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    transform: scale(1.1);
}

.action-btn:active {
    transform: scale(0.95);
}

.complete-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.skip-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.edit-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--medium);
}

.delete-btn:hover {
    background: rgba(244, 63, 94, 0.15);
    color: var(--error);
}

/* Status badges on cards */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.status-badge.skipped {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
}

/* Completed card state */
.task-card.completed {
    opacity: 0.5;
}

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

/* Overdue label */
.overdue-label {
    font-size: 11px;
    color: var(--warning);
    font-weight: 600;
    margin-top: var(--sp-1);
}

/* Overdue section collapse */
.task-section.collapsible .task-list {
    transition: max-height var(--tr-normal), opacity var(--tr-normal);
    overflow: hidden;
}

.task-section.collapsible.collapsed .task-list {
    max-height: 0 !important;
    opacity: 0;
}

.task-section.collapsible .collapse-btn svg {
    transition: transform var(--tr-fast);
}

.task-section.collapsible.collapsed .collapse-btn svg {
    transform: rotate(-90deg);
}

.section-header.overdue-header {
    cursor: pointer;
    user-select: none;
}

.section-header.overdue-header:hover {
    opacity: 0.85;
}

/* Date tag pills for custom dates */
.date-tags-list {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.date-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-primary-hover);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.date-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all var(--tr-fast);
}

.date-tag-remove:hover {
    background: rgba(244, 63, 94, 0.2);
    color: var(--error);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: var(--sp-5);
    right: var(--sp-5);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    pointer-events: none;
}

.toast {
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--br-md);
    padding: var(--sp-4) var(--sp-5);
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform var(--tr-normal);
    pointer-events: all;
    overflow: hidden;
    position: relative;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 3px solid var(--success);
}

.toast-error {
    border-left: 3px solid var(--error);
}

.toast-info {
    border-left: 3px solid var(--accent-secondary);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--success);
    animation: toastProgress 3s linear forwards;
}

.toast-error .toast-progress {
    background: var(--error);
}

.toast-info .toast-progress {
    background: var(--accent-secondary);
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Task Definition List */
.task-definition-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

/* Utilities */
.hidden { display: none !important; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mb-0 { margin-bottom: 0; }
.text-small { font-size: 12px; }

/* Auth Screen Styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
                var(--bg-main);
    padding: var(--sp-4);
    box-sizing: border-box;
    overflow-y: auto;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    padding: var(--sp-8);
    box-sizing: border-box;
    animation: fadeIn 0.4s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--sp-8);
}

.auth-logo {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: var(--sp-2);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.auth-subtitle {
    color: var(--text-tertiary);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.auth-form .form-input, .auth-form .form-select {
    width: 100%;
    height: 40px;
    padding: 0 var(--sp-3);
    border-radius: var(--br-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
    box-sizing: border-box;
}

.auth-form .form-input:focus, .auth-form .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
    outline: none;
}

.btn-auth {
    width: 100%;
    height: 44px;
    font-weight: 600;
    margin-top: var(--sp-2);
}

.auth-switch {
    margin-top: var(--sp-6);
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent-primary-hover);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: var(--sp-1);
    transition: color var(--tr-fast);
}

.link-btn:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Sidebar Profile Styles */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--border-color);
    margin-top: auto; /* Push profile to bottom of sidebar above version */
}

.theme-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    transition: background var(--tr-fast), color var(--tr-fast);
}

.theme-toggle-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--br-full);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-avatar:hover::after {
    content: '📷';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.profile-role {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: capitalize;
}

.logout-btn {
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: color var(--tr-fast), background var(--tr-fast);
}

.logout-btn:hover {
    color: var(--error);
    background: rgba(244, 63, 94, 0.1);
}

/* Assign Task Styles */
.modal-container:not(.assign-mode) .assign-only {
    display: none !important;
}

.assigned-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-6);
}

.assigned-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-4);
}

.assigned-task-card {
    position: relative;
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

.assigned-task-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.assigned-task-card.border-pending {
    border-left: 4px solid var(--warning);
}

.assigned-task-card.border-completed {
    border-left: 4px solid var(--success);
}

.assigned-task-card.border-overdue {
    border-left: 4px solid var(--error);
}

.assigned-task-card.border-cancelled {
    border-left: 4px solid var(--low);
}

.assigned-task-meta {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    font-size: 13px;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border-color);
    padding-top: var(--sp-3);
    margin-top: auto;
}

.assigned-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assigned-meta-value {
    font-weight: 500;
    color: var(--text-primary);
}

.assigned-task-actions {
    display: flex;
    gap: var(--sp-2);
    margin-top: var(--sp-2);
}

.assigned-task-actions .btn {
    flex: 1;
    font-size: 12px;
    height: 32px;
}

.badge-assigned {
    background: rgba(6, 182, 212, 0.1) !important;
    color: var(--accent-secondary) !important;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ============================================
   KANBAN BOARD STYLES — AUTHORITATIVE REFERENCE
   ============================================ */

.kanban-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f1319;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #1a202c;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.kanban-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-calendar-icon {
    font-size: 14px;
}

.kanban-current-date {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
}

.kanban-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kanban-last-updated {
    font-size: 12.5px;
    color: #64748b;
}

.kanban-refresh-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.kanban-refresh-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.kanban-board-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
    min-height: calc(100vh - 180px);
    box-sizing: border-box;
}

.kanban-column {
    flex: 1;
    min-width: 310px;
    background: var(--bg-kanban-column, #0d1117);
    border: 1px solid var(--border-kanban, #1c2333);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0px;
}

.column-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-column-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
    margin: 0;
}

.kanban-column-count {
    font-size: 11px;
    font-weight: 600;
    background: #1e293b;
    color: #94a3b8;
    min-width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.column-menu-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

.column-menu-btn:hover {
    color: #94a3b8;
}

.kanban-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kanban-subsection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.kanban-subsection-header h4 {
    font-size: 12.5px;
    font-weight: 600;
    margin: 0;
}

.kanban-sub-count {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255,255,255,0.04);
    padding: 1px 6px;
    border-radius: 10px;
}

.kanban-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
    box-sizing: border-box;
}

.kanban-card-list.drag-over {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
}

/* Compact Card Design matching Reference Image */
.kanban-card {
    background: var(--bg-kanban-card, #121824);
    border: 1px solid var(--border-kanban, #1e293b);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: grab;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.kanban-card:hover {
    border-color: var(--border-kanban-hover, #334155);
    background: var(--bg-surface-hover, #151d2c);
}

.kanban-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

/* Column specific borders */
#kanban-col-today .kanban-card {
    border-left: 3px solid #2563eb;
}

#kanban-col-progress .kanban-card {
    border-left: 3px solid #2563eb;
}

#kanban-col-completed .kanban-card {
    border-left: 3px solid #10b981;
}

/* Card Top Row */
.kanban-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kanban-card-check-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--card-checkbox-border, #475569);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease;
}

.kanban-card-check-circle:hover {
    border-color: #38bdf8;
}

.kanban-card-check-circle.checked {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.kanban-card-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary, #f1f5f9);
    flex: 1;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-card-title.strike-through {
    text-decoration: line-through;
    color: #64748b;
}

.kanban-card-chevron {
    color: #475569;
    font-size: 14px;
    line-height: 1;
}

/* Card Meta Inline Row */
.kanban-card-meta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-tertiary, #94a3b8);
    margin-top: 2px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.meta-item.recurrence {
    color: #38bdf8;
}

.meta-icon {
    font-size: 10px;
}

.meta-dot {
    color: #475569;
    font-size: 10px;
}

.meta-item.source {
    color: #94a3b8;
}

/* Reference Badges */
.ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.badge-due-today {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-employee {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-admin {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-superadmin {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-icon {
    font-size: 10px;
}

/* Initials Avatar Circle */
.avatar-badge-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

/* Add Task Button */
.kanban-add-task-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    transition: color 0.15s ease;
}

.kanban-add-task-btn:hover {
    color: #3b82f6;
}

/* Empty State Box matching Reference Image */
.kanban-empty-state {
    border: 1px dashed #1e293b;
    border-radius: 8px;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
    background: rgba(15, 23, 42, 0.3);
}

.kanban-empty-icon {
    font-size: 20px;
    opacity: 0.6;
}
    padding: var(--sp-5) var(--sp-3);
    color: var(--text-muted);
    font-size: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.03);
    border-radius: var(--br-md);
    margin: var(--sp-1) 0;
}

.avatar-initials {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   MODULE 5: ADMIN TASK SUMMARY & SIDE SHEET
   ============================================ */

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-6);
    flex-wrap: wrap;
    gap: var(--sp-4);
}

.summary-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.summary-subtitle {
    font-size: 14px;
    color: var(--text-tertiary);
}

.summary-header-controls {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.summary-date-picker {
    padding: var(--sp-2) var(--sp-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--br-md);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.summary-card {
    padding: 0;
    overflow: hidden;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.summary-table th {
    padding: var(--sp-4) var(--sp-6);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface-hover);
}

.summary-table td {
    padding: var(--sp-4) var(--sp-6);
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.summary-table tr:last-child td {
    border-bottom: none;
}

.summary-employee-cell {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-weight: 600;
}

.summary-employee-cell img,
.users-table img,
.kanban-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.pending-count-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 32px;
    padding: 0 var(--sp-3);
    border-radius: 8px;
    border: 1.5px solid #2563eb;
    background: rgba(37, 99, 235, 0.08);
    color: #3b82f6;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--tr-fast);
}

.pending-count-btn:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.in-progress-count {
    font-weight: 700;
    font-size: 15px;
    color: #10b981;
}

/* Side Sheet Drawer */
.side-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    opacity: 1;
    transition: opacity var(--tr-normal);
}

.side-sheet-overlay.hidden {
    display: none;
    opacity: 0;
}

.side-sheet {
    width: 100%;
    max-width: 460px;
    height: 100%;
    border-radius: 0;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.side-sheet-header {
    padding: var(--sp-6);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.side-sheet-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.side-sheet-badge {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
}

.side-sheet-controls {
    padding: var(--sp-3) var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.side-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.side-sheet-card {
    padding: var(--sp-4);
    border-radius: var(--br-md);
    background: var(--bg-kanban-card);
    border: 1px solid var(--border-kanban);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    transition: border-color var(--tr-fast);
}

.side-sheet-card:hover {
    border-color: var(--border-kanban-hover);
}

.side-sheet-card-top {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
}

.side-sheet-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.side-sheet-card-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
    margin-top: 4px;
}

.side-sheet-footer {
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    background: var(--bg-surface);
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--tr-fast);
}

.page-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.page-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Responsive */
@media (max-width: 1024px) {
    .recurrence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-only {
        display: inline-flex;
    }
    
    .top-bar {
        padding: 0 var(--sp-4);
    }
    
    .top-bar-left h2 {
        font-size: 18px;
    }
    
    .current-date {
        display: none;
    }
    
    .view-container {
        padding: var(--sp-4);
    }
    
    .btn span {
        display: none;
    }
    
    .btn {
        padding: 0;
        width: 40px;
    }
    
    .recurrence-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   MODULE 6: ADMIN TASK APPROVAL
   ============================================ */

.approval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--sp-4);
}

.approval-card {
    background: var(--bg-kanban-card);
    border: 1px solid var(--border-kanban);
    border-radius: 16px;
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    transition: transform var(--tr-fast), border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.approval-card:hover {
    border-color: var(--border-kanban-hover);
    box-shadow: var(--shadow-md);
}

.approval-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-3);
}

.approval-employee-info {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.approval-employee-details {
    display: flex;
    flex-direction: column;
}

.approval-employee-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.approval-employee-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.approval-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
    line-height: 1.3;
}

.approval-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.approval-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    font-size: 12px;
}

.approval-card-actions {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border-color);
}

.btn-approve {
    background: #10b981;
    color: #ffffff;
    border: none;
    flex: 1;
}

.btn-approve:hover {
    background: #059669;
}

.btn-reject {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    flex: 1;
}

.btn-reject:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Status Badges */
.badge-pending-approval {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-approved {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* Kanban Date Filter Bar Styling */
.kanban-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 2px 4px;
}

/* Today Pill Button Layout matching Reference Image */
.filter-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: #0f1319;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    min-width: 140px;
    transition: all 0.15s ease;
    text-align: left;
}

.filter-pill.active {
    border-color: #2563eb;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
}

.filter-pill-label {
    font-size: 9px;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.filter-pill-val {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
}

/* Rectangular Filter Buttons */
.filter-btn-rect {
    background: #0f1319;
    border: 1px solid #1e293b;
    color: #94a3b8;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
}

.filter-btn-rect:hover {
    color: #f1f5f9;
    border-color: #334155;
    background: #151c27;
}

.filter-btn-rect.active {
    border-color: #2563eb;
    color: #f1f5f9;
}

/* Calendar Picker Popup Overlay */
.kanban-calendar-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #0f1319;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    width: 600px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 12px;
}

.calendar-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    flex: 1;
    text-align: center;
}

.cal-nav-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.cal-nav-btn:hover {
    background: rgba(37, 99, 235, 0.1);
}

.calendar-popup-grids {
    display: flex;
    gap: 24px;
}

.calendar-month-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 6px;
    text-align: center;
}

.cal-day-cell {
    font-size: 12.5px;
    font-weight: 500;
    color: #94a3b8;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.1s ease;
}

.cal-day-cell:hover:not(.empty-cell) {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.cal-day-cell.selected {
    background: #6366f1;
    color: #ffffff;
    font-weight: 700;
}

.cal-day-cell.empty-cell {
    cursor: default;
}

.rejection-callout {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: #f87171;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rejection-callout-title {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Light Theme Specific Overrides */
.light-theme .meta-item.recurrence {
    color: #0284c7; /* Darker sky blue for readability */
}

.light-theme .kanban-column-count {
    background: #e2e8f0;
    color: #475569;
}

.light-theme .filter-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.light-theme .filter-pill-val {
    color: #0f172a;
}

.light-theme .filter-btn-rect {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.light-theme .filter-btn-rect:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.light-theme .filter-btn-rect.active {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    color: #2563eb;
}

.light-theme .kanban-calendar-popup {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.light-theme .calendar-popup-title {
    color: #0f172a;
}

.light-theme .cal-day-cell {
    color: #334155;
}

.light-theme .cal-day-cell:hover:not(.empty-cell) {
    background: #f1f5f9;
    color: #0f172a;
}

.light-theme .cal-day-cell.selected {
    background: #6366f1;
    color: #ffffff;
}

.light-theme .kanban-card-chevron {
    color: #94a3b8;
}

.light-theme .meta-dot {
    color: #cbd5e1;
}

/* Light Theme Specific Toast Overrides */
.light-theme .toast {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.light-theme .toast-message {
    color: #0f172a;
}

.light-theme .toast-success .toast-icon {
    color: #10b981;
}

.light-theme .toast-error .toast-icon {
    color: #ef4444;
}

.light-theme .toast-info .toast-icon {
    color: #2563eb;
}

/* Card Menu Dropdown Styles */
.card-menu-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.light-theme .card-menu-dropdown {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.menu-item-btn {
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    transition: background 0.1s ease;
}

.menu-item-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.light-theme .menu-item-btn {
    color: #334155;
}

.light-theme .menu-item-btn:hover {
    background: #f1f5f9;
}

.badge-starts-soon {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.light-theme .badge-starts-soon {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
