/* ==========================================
   AERO TASK - BRAND SYSTEM & THEME
   ========================================== */

:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(255, 255, 255, 0.2);
    
    /* Primary brand colors */
    --color-primary: #7c3aed;
    --color-primary-light: #9f67ff;
    --color-secondary: #2563eb;
    
    /* Status colors */
    --status-not-started: #f43f5e;     /* Rose Red */
    --status-started: #f59e0b;         /* Amber */
    --status-finished: #10b981;        /* Emerald */
    
    /* Priority colors */
    --priority-low: #3b82f6;           /* Blue */
    --priority-medium: #f59e0b;        /* Amber */
    --priority-high: #ef4444;          /* Red */
    
    /* Typography & Neutral colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout properties */
    --sidebar-width: 260px;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 24px;
    
    --shadow-glow: 0 8px 32px 0 rgba(124, 58, 237, 0.15);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Base resets & setups */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

/* Confetti canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ==========================================
   LOGIN SCREEN
   ========================================== */

.login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle at 50% 50%, #15102a 0%, var(--bg-dark) 100%);
    overflow: hidden;
}

.login-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(37, 99, 235, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    border-radius: 50%;
    filter: blur(50px);
    animation: rotateGlow 25s infinite linear;
}

@keyframes rotateGlow {
    0% { transform: translate(-10%, -10%) rotate(0deg); }
    50% { transform: translate(10%, 10%) rotate(180deg); }
    100% { transform: translate(-10%, -10%) rotate(360deg); }
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    z-index: 10;
    transition: transform var(--transition-normal);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header .logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.3));
}

.login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Floating labels */
.form-group-floating {
    position: relative;
    width: 100%;
}

.form-group-floating input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    outline: none;
    font-size: 15px;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-group-floating label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast) ease;
    font-size: 15px;
}

.form-group-floating label i {
    margin-right: 6px;
}

.form-group-floating input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Shift labels up when focusing or when input has content */
.form-group-floating input:focus ~ label,
.form-group-floating input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 12px;
    transform: translateY(-50%);
    background: var(--bg-dark);
    padding: 0 8px;
    left: 20px;
    color: var(--color-primary-light);
}

/* Password eye toggle */
.password-field-wrap {
    position: relative;
}

.btn-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
    z-index: 2;
}

.btn-eye:hover {
    color: var(--color-primary-light);
}

.password-field-wrap input {
    padding-right: 44px;
}

.login-actions {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-secondary-glow {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    padding: 14px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition-fast), border var(--transition-fast);
}

.btn-secondary-glow:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.login-error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 12px;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    animation: fadeIn var(--transition-normal);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

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


/* ==========================================
   DASHBOARD LAYOUT
   ========================================== */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-dark);
}

/* Sidebar navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: #07070b;
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 24px;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    margin-bottom: 40px;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-header .logo i {
    font-size: 24px;
}

.sidebar-nav {
    flex-grow: 1;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav li {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.sidebar-nav li a i {
    font-size: 18px;
}

.sidebar-nav li:hover a,
.sidebar-nav li.active a {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-primary-light), var(--color-secondary));
    border-radius: 0 4px 4px 0;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.user-profile .user-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.user-profile .user-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.btn-logout:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Workspace main content */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-welcome h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.header-welcome p {
    color: var(--text-muted);
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 240px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 11px 11px 11px 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    outline: none;
    font-size: 14px;
    transition: border var(--transition-fast), background var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--color-primary-light);
    background: var(--bg-card-hover);
}

.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.notification-bell:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-dark);
}

.btn-add-task {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    padding: 11px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-add-task:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}


/* ==========================================
   METRICS SECTION
   ========================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition-fast), border var(--transition-fast);
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.metric-icon.total {
    background: rgba(124, 58, 237, 0.1);
    color: var(--color-primary-light);
}

.metric-icon.in-progress {
    background: rgba(245, 158, 11, 0.1);
    color: var(--status-started);
}

.metric-icon.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--status-finished);
}

.metric-icon.overdue {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-not-started);
}

.metric-data h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.metric-data p {
    font-size: 13px;
    color: var(--text-muted);
}


/* ==========================================
   FILTERS & SORTING
   ========================================== */

.filters-panel {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.filters-left, .filters-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.filter-group label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-group select {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border var(--transition-fast);
}

.filter-group select:focus {
    border-color: var(--color-primary-light);
}

select option,
.filter-group select option,
.form-group select option {
    background-color: #0f1016;
    color: var(--text-main);
}



/* ==========================================
   WORKSPACE VIEWS & PANES
   ========================================== */

.workspace-views {
    flex-grow: 1;
    position: relative;
}

.view-pane {
    display: none;
    animation: fadeIn var(--transition-normal);
}

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


/* --- KANBAN VIEW --- */

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.kanban-column {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.column-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
}

.column-count {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.kanban-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 400px;
    transition: background-color var(--transition-fast), border var(--transition-fast);
    border-radius: var(--border-radius-sm);
}

/* Drag states */
.kanban-cards-container.drag-over {
    background-color: rgba(124, 58, 237, 0.03);
    border: 1px dashed rgba(124, 58, 237, 0.3);
}


/* --- TASK CARDS --- */

.task-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 16px;
    cursor: grab;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.task-card-item:active {
    cursor: grabbing;
}

.task-card-item.dragging {
    opacity: 0.5;
    transform: scale(0.96);
    border-color: var(--color-primary-light);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.card-tag.work { color: #818cf8; background: rgba(99, 102, 241, 0.1); }
.card-tag.personal { color: #f472b6; background: rgba(244, 114, 182, 0.1); }
.card-tag.design { color: #22d3ee; background: rgba(34, 211, 238, 0.1); }
.card-tag.code { color: #34d399; background: rgba(52, 211, 153, 0.1); }
.card-tag.marketing { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.card-tag.urgent { color: #f87171; background: rgba(248, 113, 113, 0.1); }

.card-priority {
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-priority.low { color: var(--priority-low); }
.card-priority.medium { color: var(--priority-medium); }
.card-priority.high { color: var(--priority-high); }

.task-card-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.task-card-item p.desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 12px;
}

.card-dates i {
    font-size: 12px;
}

.card-dates.overdue {
    color: #fca5a5;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.btn-progress-cycle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), border var(--transition-fast);
}

.btn-progress-cycle:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Buttons style inside cards */
.actions-right {
    display: flex;
    gap: 6px;
}

.btn-card-action {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-card-action:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.btn-card-action.delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}


/* --- LIST VIEW (TABLE) --- */

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

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

.tasks-table th, .tasks-table td {
    padding: 16px 24px;
    font-size: 14px;
}

.tasks-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
}

.tasks-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition-fast);
}

.tasks-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.tasks-table tbody tr:last-child {
    border-bottom: none;
}

.table-task-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-task-cell h4 {
    font-weight: 600;
    color: var(--text-main);
}

.table-task-cell p {
    font-size: 12px;
    color: var(--text-muted);
}

.table-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.table-status-badge.NotStarted {
    background: rgba(244, 63, 94, 0.1);
    color: #fda4af;
}

.table-status-badge.Started {
    background: rgba(245, 158, 11, 0.1);
    color: #fde047;
}

.table-status-badge.Finished {
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
}

.actions-col {
    text-align: right;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}


/* --- GRID VIEW (CARDS) --- */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}


/* Empty state */
.empty-state-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
}

.empty-state-placeholder i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state-placeholder p {
    color: var(--text-muted);
    font-size: 15px;
}


/* ==========================================
   MODAL DIALOG (CREATE / EDIT TASK)
   ========================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn var(--transition-fast);
}

.modal-card {
    background: #0f1016;
    border: 1px solid var(--border-glass-active);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 580px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideUp var(--transition-normal);
}

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

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

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-close:hover {
    color: var(--text-main);
}

.modal-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row.split > .form-group {
    flex: 1;
}

.form-row.split-three > .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 12px;
    font-size: 14px;
    outline: none;
    transition: border var(--transition-fast), background var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary-light);
    background: rgba(255, 255, 255, 0.04);
}

.form-group textarea {
    resize: vertical;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border-glass);
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.04);
}

.btn-submit {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}


/* ==========================================
   NOTIFICATION PANEL DRAWER
   ========================================== */

.notification-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    max-height: calc(100vh - 40px);
    background: #0f1016;
    border: 1px solid var(--border-glass-active);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInRight var(--transition-normal);
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.panel-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h4 {
    font-size: 14px;
    font-weight: 700;
}

.panel-header button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.panel-body {
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}

.notification-item.urgent {
    border-left: 3px solid #ef4444;
}

.notification-item.warning {
    border-left: 3px solid #f59e0b;
}

.notification-item .notif-title {
    font-weight: 600;
    color: var(--text-main);
}

.notification-item .notif-time {
    font-size: 10px;
    color: var(--text-muted);
}


/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */

@media (max-width: 1024px) {
    .kanban-board {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kanban-column {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    /* Hide sidebar and use a mobile view structure */
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filters-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-left, .filters-right {
        justify-content: space-between;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-row.split-three {
        flex-direction: column;
    }
    
    .login-card {
        padding: 24px;
    }
    
    .login-actions {
        grid-template-columns: 1fr;
    }
}
