:root {
            --bg-main: #0f1117;
            --bg-sidebar: #13151c;
            --bg-surface: #1e222d;
            --bg-surface-hover: #262b38;
            --text-main: #e2e8f0;
            --text-muted: #94a3b8;
            --accent-primary: #8b5cf6;
            --accent-primary-hover: #7c3aed;
            --accent-secondary: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --info: #3b82f6;
            --border: rgba(255, 255, 255, 0.08);
            --glass: rgba(30, 34, 45, 0.7);
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --radius-md: 8px;
            --radius-lg: 12px;
            --radius-full: 9999px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-main);
            color: var(--text-main);
            display: flex;
            height: 100vh;
            overflow: hidden;
        }

        /* Typography & Utilities */
        h1, h2, h3, h4 { color: #f8fafc; font-weight: 600; }
        .text-muted { color: var(--text-muted); font-size: 0.875rem; }
        .flex { display: flex; }
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }
        .gap-2 { gap: 0.5rem; }
        .gap-4 { gap: 1rem; }
        .mt-4 { margin-top: 1rem; }
        .mb-4 { margin-bottom: 1rem; }

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

        /* Buttons & Badges */
        .btn { padding: 0.5rem 1rem; border-radius: var(--radius-md); border: none; cursor: pointer; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
        .btn-primary { background-color: var(--accent-primary); color: white; }
        .btn-primary:hover { background-color: var(--accent-primary-hover); }
        .btn-ghost { background: transparent; color: var(--text-muted); }
        .btn-ghost:hover { background: var(--bg-surface-hover); color: var(--text-main); }
        
        .badge { padding: 0.25rem 0.5rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
        .badge-priority-low { background: rgba(16, 185, 129, 0.1); color: var(--accent-secondary); }
        .badge-priority-medium { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
        .badge-priority-high { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

        /* Sidebar */
        .sidebar {
            width: 250px;
            background-color: var(--bg-sidebar);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            padding: 1.5rem 0;
            z-index: 10;
        }
        .brand {
            padding: 0 1.5rem 1.5rem;
            font-size: 1.25rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: white;
            border-bottom: 1px solid var(--border);
        }
        .brand i { color: var(--accent-primary); font-size: 1.5rem; }
        .nav-menu { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.25rem; padding: 0 0.75rem; }
        .nav-item {
            padding: 0.75rem 1rem;
            border-radius: var(--radius-md);
            color: var(--text-muted);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            transition: all 0.2s;
            cursor: pointer;
        }
        .nav-item:hover, .nav-item.active {
            background-color: var(--bg-surface-hover);
            color: var(--text-main);
        }
        .nav-item.active { border-left: 3px solid var(--accent-primary); border-radius: 0 var(--radius-md) var(--radius-md) 0; }

        /* Main Content */
        .main-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent 40%), var(--bg-main);
            overflow: hidden;
        }
        .topbar {
            height: 70px;
            border-bottom: 1px solid var(--border);
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(19, 21, 28, 0.5);
            backdrop-filter: blur(10px);
            z-index: 5;
        }
        .search-bar {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-full);
            padding: 0.5rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            width: 300px;
        }
        .search-bar input {
            background: none;
            border: none;
            color: var(--text-main);
            outline: none;
            width: 100%;
        }
        .content-area {
            flex: 1;
            overflow-y: auto;
            padding: 2rem;
        }

        /* Views */
        .view-section { display: none; animation: fadeIn 0.3s ease; }
        .view-section.active { display: block; }

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

        /* Dashboard View */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        .stat-card {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: var(--shadow-md);
        }
        .stat-icon {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }
        .stat-card:nth-child(1) .stat-icon { background: rgba(59, 130, 246, 0.1); color: var(--info); }
        .stat-card:nth-child(2) .stat-icon { background: rgba(139, 92, 246, 0.1); color: var(--accent-primary); }
        .stat-card:nth-child(3) .stat-icon { background: rgba(16, 185, 129, 0.1); color: var(--accent-secondary); }
        .stat-card:nth-child(4) .stat-icon { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
        
        .charts-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 1.5rem;
        }
        .chart-container {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            box-shadow: var(--shadow-md);
        }

        /* Kanban View */
        .kanban-board {
            display: flex;
            gap: 1.5rem;
            height: calc(100vh - 180px);
            overflow-x: auto;
            padding-bottom: 1rem;
        }
        .kanban-column {
            background: rgba(30, 34, 45, 0.4);
            border-radius: var(--radius-lg);
            width: 320px;
            min-width: 320px;
            display: flex;
            flex-direction: column;
            border: 1px dashed transparent;
            transition: border-color 0.2s;
        }
        .kanban-column.drag-over {
            border-color: var(--accent-primary);
            background: rgba(139, 92, 246, 0.05);
        }
        .kanban-header {
            padding: 1.25rem;
            border-bottom: 1px solid var(--border);
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .kanban-tasks {
            padding: 1rem;
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        /* Task Card */
        .task-card {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 1rem;
            cursor: grab;
            box-shadow: var(--shadow-sm);
            transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
        }
        .task-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            border-color: rgba(255,255,255,0.2);
        }
        .task-card.dragging {
            opacity: 0.5;
            cursor: grabbing;
        }
        .task-title { font-weight: 500; margin-bottom: 0.5rem; line-height: 1.4; }
        .task-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1rem;
            padding-top: 0.75rem;
            border-top: 1px solid var(--border);
        }
        .task-tags { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
        .tag { font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 4px; background: var(--bg-surface-hover); color: var(--text-muted); }

        /* List View */
        .list-container {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
        }
        .list-table {
            width: 100%;
            border-collapse: collapse;
        }
        .list-table th, .list-table td {
            padding: 1rem 1.5rem;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }
        .list-table th {
            background: rgba(0,0,0,0.2);
            color: var(--text-muted);
            font-weight: 500;
            font-size: 0.875rem;
        }
        .list-table tr:hover td {
            background: var(--bg-surface-hover);
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
        }
        .modal-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }
        .modal-content {
            background: var(--bg-main);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            width: 100%;
            max-width: 500px;
            padding: 2rem;
            transform: scale(0.95);
            transition: transform 0.2s;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
        }
        .modal-overlay.active .modal-content { transform: scale(1); }
        .form-group { margin-bottom: 1.25rem; }
        .form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
        .form-control {
            width: 100%;
            padding: 0.75rem 1rem;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            color: var(--text-main);
            font-family: inherit;
            outline: none;
            transition: border-color 0.2s;
        }
        .form-control:focus { border-color: var(--accent-primary); }
        textarea.form-control { resize: vertical; min-height: 100px; }