/* ==========================================================================
   TEAM TO DO LIST - Left Sidebar Navigation Layout & CSS Design System
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #0f172a;
    --bg-sidebar: rgba(15, 23, 42, 0.95);
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    --bg-glass-modal: rgba(15, 23, 42, 0.88);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-glow: rgba(99, 102, 241, 0.4);

    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;

    --status-todo: #38bdf8;
    --status-todo-bg: rgba(56, 189, 248, 0.12);
    
    --status-progress: #f59e0b;
    --status-progress-bg: rgba(245, 158, 11, 0.12);
    
    --status-review: #a855f7;
    --status-review-bg: rgba(168, 85, 247, 0.12);
    
    --status-done: #10b981;
    --status-done-bg: rgba(16, 185, 129, 0.12);

    --priority-high: #ef4444;
    --priority-high-bg: rgba(239, 68, 68, 0.15);
    --priority-med: #f59e0b;
    --priority-med-bg: rgba(245, 158, 11, 0.15);
    --priority-low: #10b981;
    --priority-low-bg: rgba(16, 185, 129, 0.15);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);

    /* Fonts & Radii */
    --font-family: 'Prompt', 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --shadow-subtle: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
    
    --sidebar-width: 270px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Utility Classes */
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-rose { color: var(--priority-high) !important; }
.text-amber { color: var(--status-progress) !important; }
.text-emerald { color: var(--status-done) !important; }
.full-width { width: 100% !important; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
}

/* App Layout Grid */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar Navigation */
.sidebar-nav {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 150;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.logo-text h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-text h1 span {
    color: var(--accent-cyan);
}

.version-badge {
    font-size: 0.68rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.sidebar-menu {
    padding: 1.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.menu-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    padding-left: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.nav-item i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.sidebar-member-section {
    animation: fadeIn 0.3s ease;
}

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

.sidebar-actions {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer {
    padding: 0.88rem 1rem;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 15, 30, 0.4);
}

.gsheet-status-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.gsheet-status-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--border-highlight);
}

.gsheet-status-btn i {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.gsheet-btn-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.status-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
}

.status-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Main Workspace */
.main-workspace {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* Top Header Bar */
.top-bar {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    z-index: 90;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.today-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    padding: 7px 14px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.today-pill i {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
}

/* Responsive Sidebar Drawer */
@media (max-width: 900px) {
    .sidebar-nav {
        transform: translateX(-100%);
    }

    .sidebar-nav.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .main-workspace {
        margin-left: 0;
    }

    .mobile-toggle-btn {
        display: flex;
    }
}

/* Search Box & Controls */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    padding: 8px 14px 8px 36px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.88rem;
    width: 240px;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    width: 280px;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
}

/* Custom Select Dropdowns */
.custom-select {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 9px 14px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary);
}

.select-sm {
    padding: 6px 10px;
    font-size: 0.82rem;
}

.member-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.member-select-wrapper .select-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
    pointer-events: none;
}

.member-select-wrapper select {
    padding-left: 32px;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.danger-btn {
    background: rgba(239, 68, 68, 0.15);
    color: var(--priority-high);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.danger-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Pulse Glow Animation */
.pulse-glow {
    animation: pulse-border 3s infinite;
}

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.6); }
}

/* Main Layout Content */
.main-content {
    padding: 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--border-highlight);
}

/* Executive Dashboard Specific Styles */
.dash-overview-banner {
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    border-left: 5px solid var(--primary);
}

.completion-gauge-box {
    min-width: 260px;
}

.gauge-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.gauge-percentage {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-cyan), var(--status-done));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 4px;
}

.dash-banner-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.dash-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.dash-stat-item .num {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.dash-stat-item .lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.dashboard-widget {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.widget-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.widget-header h3 i {
    color: var(--accent-cyan);
    width: 20px;
    height: 20px;
}

.breakdown-bar-container {
    display: flex;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
}

.breakdown-segment {
    height: 100%;
    transition: width 0.5s ease;
}

.chart-legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.priority-stat-row {
    margin-bottom: 1rem;
}

.priority-info-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.count-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.leaderboard-info {
    flex: 1;
}

.leaderboard-info .name {
    font-size: 0.9rem;
    font-weight: 600;
}

.leaderboard-info .role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.leaderboard-progress {
    width: 120px;
}

.urgent-task-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.urgent-task-item:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

.urgent-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.urgent-task-title {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.urgent-task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Master KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-card {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon i {
    width: 26px;
    height: 26px;
}

.icon-blue { background: rgba(56, 189, 248, 0.15); color: var(--status-todo); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--status-progress); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--status-done); }
.icon-rose { background: rgba(239, 68, 68, 0.15); color: var(--priority-high); }

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.kpi-subtext {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    position: absolute;
    bottom: 12px;
    right: 16px;
}

/* Section Containers */
.section-container {
    margin-bottom: 2.25rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.wrap-header {
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.section-header h2 i {
    color: var(--accent-cyan);
    width: 20px;
    height: 20px;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.member-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    cursor: pointer;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.member-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

.member-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-bar-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--status-done));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.member-stats-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.75rem;
}

.stat-pill {
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.stat-pill.todo { background: var(--status-todo-bg); color: var(--status-todo); }
.stat-pill.progress { background: var(--status-progress-bg); color: var(--status-progress); }
.stat-pill.done { background: var(--status-done-bg); color: var(--status-done); }

/* Filter Pills & Controls */
.table-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filter-pills {
    display: flex;
    background: rgba(30, 41, 59, 0.8);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.pill-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-btn.active {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
}

/* Master Table */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.master-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.master-table th {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.master-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.master-table tbody tr {
    transition: background 0.2s ease;
    cursor: pointer;
}

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

.task-cell-title {
    font-weight: 600;
    color: #ffffff;
}

.task-cell-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    max-width: 340px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assignee-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assignee-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
}

.badge-high { background: var(--priority-high-bg); color: var(--priority-high); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-medium { background: var(--priority-med-bg); color: var(--priority-med); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-low { background: var(--priority-low-bg); color: var(--priority-low); border: 1px solid rgba(16, 185, 129, 0.3); }

.badge-status {
    font-weight: 500;
}

.badge-todo { background: var(--status-todo-bg); color: var(--status-todo); }
.badge-in_progress { background: var(--status-progress-bg); color: var(--status-progress); }
.badge-in_review { background: var(--status-review-bg); color: var(--status-review); }
.badge-done { background: var(--status-done-bg); color: var(--status-done); }

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.date-badge.overdue {
    color: var(--priority-high);
    font-weight: 600;
}

.date-badge.due-today {
    color: var(--status-progress);
    font-weight: 600;
}

/* Empty State */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--text-dim);
}

/* Member Banner (Member View) */
.member-header-banner {
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-left: 4px solid var(--accent-cyan);
}

.member-banner-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.member-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.member-banner-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.member-banner-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.member-banner-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.banner-stat-box {
    text-align: center;
}

.banner-stat-box .num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.banner-stat-box .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Kanban Board Layout */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
    min-height: 500px;
}

.column-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

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

.column-title h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.column-todo .status-indicator { background: var(--status-todo); box-shadow: 0 0 8px var(--status-todo); }
.column-progress .status-indicator { background: var(--status-progress); box-shadow: 0 0 8px var(--status-progress); }
.column-review .status-indicator { background: var(--status-review); box-shadow: 0 0 8px var(--status-review); }
.column-done .status-indicator { background: var(--status-done); box-shadow: 0 0 8px var(--status-done); }

.task-count-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.column-cards-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
    transition: background 0.2s ease;
}

.column-cards-container.drag-over {
    background: rgba(99, 102, 241, 0.08);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
}

/* Task Cards in Kanban */
.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: grab;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

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

.task-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.task-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.task-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.task-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-move-select {
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.glass-modal {
    background: var(--bg-glass-modal);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 580px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-sm {
    max-width: 440px;
}

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

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.icon-btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.required {
    color: var(--priority-high);
}

.form-group input, .form-group textarea, .form-group select {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--border-highlight);
    color: white;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    animation: toast-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-success i { color: var(--status-done); }
.toast-info i { color: var(--status-todo); }
.toast-danger i { color: var(--priority-high); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-scale-up {
    animation: scale-up 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scale-up {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
