﻿        :root {
            --primary: #00f2ff;
            --secondary: #7000ff;
            --accent: #10b981;
            --warning: #facc15;
            --danger: #ef4444;
            --bg-dark: #020617;
            --sidebar-bg: rgba(2, 6, 23, 0.95);
            --card-bg: rgba(15, 23, 42, 0.4);
            --card-border: rgba(255, 255, 255, 0.08);
            --glass-bg: rgba(255, 255, 255, 0.03);
            --text-main: #f8fafc;
            --text-dim: #94a3b8;
            --font-main: 'Outfit', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            font-family: var(--font-main);
            height: 100vh;
            overflow: hidden;
            display: flex;
        }

        /* --- BACKGROUND ATMOSPHERE --- */
        .bg-mesh {
            position: fixed; inset: 0; z-index: -1;
            background: 
                radial-gradient(circle at 0% 0%, rgba(112, 0, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(0, 242, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 1) 0%, var(--bg-dark) 100%);
        }

        /* --- SIDEBAR --- */
        .sidebar {
            width: 280px;
            background: var(--sidebar-bg);
            border-right: 1px solid var(--card-border);
            display: flex;
            flex-direction: column;
            backdrop-filter: blur(40px);
            z-index: 100;
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }

        .sidebar-header {
            padding: 30px 25px;
            border-bottom: 1px solid var(--card-border);
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .os-logo {
            width: 40px; height: 40px;
            background: linear-gradient(135deg, var(--secondary), var(--primary));
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
        }

        .sidebar-nav {
            flex: 1;
            overflow-y: auto;
            padding: 20px 15px;
            scrollbar-width: none;
        }
        .sidebar-nav::-webkit-scrollbar { display: none; }

        .nav-group-label {
            font-size: 0.65rem;
            font-weight: 800;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin: 25px 10px 10px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            color: var(--text-dim);
            text-decoration: none;
            border-radius: 12px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 500;
            font-size: 0.9rem;
            margin-bottom: 4px;
            cursor: pointer;
            border: 1px solid transparent;
        }

        .nav-item:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .nav-item.active {
            color: var(--primary);
            background: rgba(0, 242, 255, 0.08);
            border-color: rgba(0, 242, 255, 0.2);
            font-weight: 700;
        }

        .nav-item i { width: 20px; text-align: center; font-size: 1rem; }

        .sidebar-footer {
            padding: 20px;
            border-top: 1px solid var(--card-border);
        }

        /* --- MAIN CONTENT --- */
        .main-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            position: relative;
            min-width: 0;
        }

        header.top-bar {
            height: 70px;
            border-bottom: 1px solid var(--card-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 40px;
            background: rgba(2, 6, 23, 0.4);
            backdrop-filter: blur(10px);
            z-index: 90;
        }

        .search-container {
            display: flex;
            align-items: center;
            background: var(--glass-bg);
            border: 1px solid var(--card-border);
            padding: 8px 15px;
            border-radius: 10px;
            width: 400px;
        }

        .search-container input {
            background: none; border: none; color: #fff; margin-left: 10px; flex: 1; outline: none; font-size: 0.9rem;
        }

        .top-actions { display: flex; align-items: center; gap: 20px; }
        .action-btn { 
            background: var(--glass-bg); border: 1px solid var(--card-border);
            width: 40px; height: 40px; border-radius: 10px; color: var(--text-dim);
            display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s;
        }
        .action-btn:hover { color: #fff; border-color: var(--primary); background: rgba(0, 242, 255, 0.1); }

        .user-profile {
            display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid var(--card-border);
        }
        .user-avatar { width: 35px; height: 35px; border-radius: 50%; border: 2px solid var(--primary); }

        /* --- VIEW CONTAINER --- */
        #view-container {
            flex: 1;
            padding: 40px;
            overflow-y: auto;
            position: relative;
        }

        .view-module {
            display: none;
            animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .view-module.active { display: block; }

        @keyframes slideInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

        /* --- COMPONENTS --- */
        .card-premium {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 24px;
            padding: 30px;
            backdrop-filter: blur(20px);
            transition: 0.3s;
        }
        .card-premium:hover { border-color: rgba(0, 242, 255, 0.2); transform: translateY(-2px); }

        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
        .stat-card {
            background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 25px;
            position: relative; overflow: hidden;
        }
        .stat-card::after {
            content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
            background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
            pointer-events: none;
        }
        .stat-value { font-size: 2rem; font-weight: 800; margin: 10px 0; display: block; font-family: var(--font-mono); }
        .stat-label { font-size: 0.75rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
        .stat-trend { font-size: 0.8rem; font-weight: 700; }
        .trend-up { color: var(--accent); }
        .trend-down { color: var(--danger); }

        /* --- KANBAN --- */
        .kanban-board { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; min-height: 600px; }
        .kanban-column {
            flex: 0 0 320px; background: rgba(15, 23, 42, 0.3); border-radius: 20px;
            display: flex; flex-direction: column; max-height: 100%; border: 1px solid var(--card-border);
        }
        .kanban-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--card-border); }
        .kanban-title { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
        .kanban-count { background: var(--glass-bg); padding: 2px 8px; border-radius: 5px; font-size: 0.7rem; font-weight: 800; }
        .kanban-list { flex: 1; padding: 15px; overflow-y: auto; }
        .kanban-card {
            background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 15px; padding: 20px;
            margin-bottom: 15px; cursor: grab; transition: 0.2s; position: relative; overflow: hidden;
        }
        .kanban-card:hover { border-color: var(--primary); box-shadow: 0 10px 20px rgba(0,0,0,0.3); transform: scale(1.02); }
        .kanban-card.dragging { opacity: 0.5; }

        /* --- DRAWER --- */
        .drawer {
            position: fixed; top: 0; right: 0; width: 500px; height: 100%;
            background: rgba(2, 6, 23, 0.98); backdrop-filter: blur(50px);
            border-left: 1px solid var(--card-border); z-index: 1000;
            transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,0.5);
        }
        .drawer.open { transform: translateX(0); }
        .drawer-header { padding: 30px; border-bottom: 1px solid var(--card-border); display: flex; justify-content: space-between; align-items: flex-start; }
        .drawer-content { flex: 1; overflow-y: auto; padding: 30px; }

        /* --- ONBOARDING WIZARD --- */
        #wizard-overlay {
            position: fixed; inset: 0; z-index: 2000;
            background: var(--bg-dark);
            display: flex; align-items: center; justify-content: center;
        }
        .wizard-card {
            width: 800px; max-width: 95%; background: var(--card-bg); border: 1px solid var(--card-border);
            border-radius: 30px; padding: 50px; backdrop-filter: blur(40px);
            animation: zoomIn 0.5s ease;
        }
        @keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

        .wizard-step { display: none; }
        .wizard-step.active { display: block; animation: fadeIn 0.4s ease; }

        /* --- BUTTONS --- */
        .btn-glow {
            background: linear-gradient(135deg, var(--secondary), var(--primary));
            border: none; color: #fff; padding: 12px 25px; border-radius: 12px;
            font-weight: 800; cursor: pointer; transition: 0.3s;
            display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem;
        }
        .btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(0, 242, 255, 0.4); filter: brightness(1.1); }

        .btn-outline {
            background: transparent; border: 1px solid var(--card-border); color: var(--text-dim);
            padding: 10px 20px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: 0.2s;
        }
        .btn-outline:hover { color: #fff; border-color: var(--primary); background: rgba(0, 242, 255, 0.05); }

        /* --- AI FLOATING PANEL --- */
        #ai-assistant-fab {
            position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
            background: linear-gradient(45deg, var(--secondary), var(--primary));
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            cursor: pointer; z-index: 500; box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
            animation: pulse-ai 4s infinite;
        }
        @keyframes pulse-ai { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); box-shadow: 0 0 50px rgba(0, 242, 255, 0.5); } }

        #ai-panel {
            position: fixed; bottom: 100px; right: 30px; width: 350px; max-height: 500px;
            background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px);
            border: 1px solid var(--primary); border-radius: 20px; z-index: 500;
            display: none; flex-direction: column; overflow: hidden;
            box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        }

        /* --- SCROLLBAR --- */
        ::-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: var(--primary); }

        /* --- TOGGLE SWITCH --- */
        .switch { position: relative; display: inline-block; width: 40px; height: 20px; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; inset: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 20px; }
        .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
        input:checked + .slider { background-color: var(--primary); }
        input:checked + .slider:before { transform: translateX(20px); }

    </style>
