  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Exo 2', sans-serif;
            background: #0a0a0b;
            color: #e4e4e7;
            overflow: hidden;
        }

        /* Starry Background */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -2;
            opacity: 0.6;
            animation: twinkle 4s infinite ease-in-out;
        }

        body::after {
            content: '';
            position: fixed;
            top: 0;
            right: 0;
            width: 100vw;
            height: 100vh;
            background: radial-gradient(circle at top right, rgba(75, 85, 99, 0.3) 0%, transparent 60%);
            z-index: -1;
            pointer-events: none;
        }

        @keyframes twinkle {

            0%,
            100% {
                opacity: 0.4;
            }

            50% {
                opacity: 0.8;
            }
        }

        /* Layout */
        .dashboard-container {
            display: grid;
            grid-template-columns: 250px 1fr;
            height: 100vh;
        }

        /* Sidebar */
        .sidebar {
            background: rgba(17, 17, 19, 0.95);
            border-right: 1px solid #27272a;
            backdrop-filter: blur(20px);
            padding: 20px 0;
            overflow-y: auto;
            height: 100vh;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 20px;
            margin-bottom: 30px;
        }

        .logo-icon {
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #6b7280, #374151);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .logo-text {
            font-family: 'Orbitron', monospace;
            font-size: 14px;
            font-weight: 400;
            color: #f9fafb;
            letter-spacing: 0.5px;
        }

        .nav-menu {
            list-style: none;
            padding: 0 10px;
        }

        .nav-item {
            margin-bottom: 5px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            color: #9ca3af;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-size: 14px;
            cursor: pointer;
        }

        .nav-link:hover,
        .nav-link.active {
            background: rgba(75, 85, 99, 0.3);
            color: #f9fafb;
        }

        .nav-icon {
            width: 18px;
            text-align: center;
        }

        .logout-btn {
            margin: 20px 10px;
            padding: 12px 15px;
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid #ef4444;
            border-radius: 8px;
            color: #ef4444;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            font-size: 14px;
        }

        .logout-btn:hover {
            background: rgba(239, 68, 68, 0.3);
        }

        /* Main Content */
        .main-content {
            height: 100vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        /* Top Bar */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(17, 17, 19, 0.8);
            border: 1px solid #27272a;
            border-radius: 12px;
            padding: 15px 25px;
            margin: 20px;
            backdrop-filter: blur(20px);
            flex-shrink: 0;
        }

        .page-title {
            font-family: 'Orbitron', monospace;
            font-size: 18px;
            font-weight: 400;
            color: #f9fafb;
            letter-spacing: 0.5px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-avatar {
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #6b7280, #374151);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: 500;
        }

        /* Content Area */
        .content-area {
            flex: 1;
            margin: 0 20px 20px 20px;
            overflow: hidden;
            position: relative;
        }

        .section {
            display: none;
            height: 100%;
            overflow-y: auto;
            padding-right: 10px;
        }

        .section.active {
            display: block;
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: rgba(17, 17, 19, 0.8);
            border: 1px solid #27272a;
            border-radius: 12px;
            padding: 25px;
            backdrop-filter: blur(20px);
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            border-color: #6b7280;
        }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .stat-title {
            font-size: 12px;
            color: #9ca3af;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
        }

        .stat-icon {
            width: 30px;
            height: 30px;
            background: rgba(75, 85, 99, 0.5);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }

        .stat-value {
            font-family: 'Orbitron', monospace;
            font-size: 24px;
            font-weight: 400;
            color: #f9fafb;
            margin-bottom: 8px;
        }

        .stat-change {
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .stat-change.positive {
            color: #10b981;
        }

        .stat-change.negative {
            color: #ef4444;
        }

        /* Content Grid */
        .content-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        /* Section Components */
        .section-card {
            background: rgba(17, 17, 19, 0.8);
            border: 1px solid #27272a;
            border-radius: 12px;
            padding: 25px;
            backdrop-filter: blur(20px);
            margin-bottom: 20px;
        }

        .section-title {
            font-family: 'Orbitron', monospace;
            font-size: 16px;
            font-weight: 400;
            color: #f9fafb;
            margin-bottom: 20px;
            letter-spacing: 0.3px;
        }

        /* Forms */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            color: #9ca3af;
            font-size: 14px;
            font-weight: 500;
        }

        .form-input,
        .form-select {
            width: 100%;
            padding: 12px;
            background: rgba(31, 41, 55, 0.5);
            border: 1px solid #374151;
            border-radius: 6px;
            color: #f9fafb;
            font-size: 14px;
        }

        .form-input::placeholder {
            color: #6b7280;
        }

        /* Buttons */
        .btn {
            padding: 12px 20px;
            border: 1px solid #374151;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-right: 10px;
            margin-bottom: 10px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #6b7280, #4b5563);
            color: white;
            border-color: #6b7280;
        }

        .btn-secondary {
            background: rgba(75, 85, 99, 0.3);
            color: #e5e7eb;
            border-color: #374151;
        }

        .btn-danger {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
            border-color: #ef4444;
        }

        .btn:hover {
            transform: translateY(-1px);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #4b5563, #374151);
        }

        /* Tables */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }

        .data-table th,
        .data-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #27272a;
            font-size: 14px;
        }

        .data-table th {
            color: #9ca3af;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 11px;
        }

        .data-table td {
            color: #e4e4e7;
        }

        .amount-positive {
            color: #10b981;
        }

        .amount-negative {
            color: #ef4444;
        }

        .category-tag {
            padding: 4px 8px;
            background: rgba(75, 85, 99, 0.3);
            border-radius: 12px;
            font-size: 11px;
            color: #9ca3af;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        /* Chart Container */
        .chart-container {
            height: 300px;
            border: 1px solid #27272a;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        /* Quick Actions */
        .action-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .action-btn {
            width: 100%;
            padding: 15px;
            background: rgba(75, 85, 99, 0.3);
            border: 1px solid #374151;
            border-radius: 8px;
            color: #f9fafb;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
            font-size: 14px;
            cursor: pointer;
        }

        .action-btn:hover {
            background: rgba(75, 85, 99, 0.5);
            border-color: #6b7280;
            transform: translateY(-1px);
        }

        /* Search and Filter Bar */
        .search-bar {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .search-input {
            padding: 8px 12px;
            background: rgba(31, 41, 55, 0.5);
            border: 1px solid #374151;
            border-radius: 6px;
            color: #f9fafb;
            font-size: 14px;
            min-width: 200px;
        }

        .search-input::placeholder {
            color: #6b7280;
        }

        /* Loading States */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, .3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Scrollbar Styling */
        .section::-webkit-scrollbar {
            width: 8px;
        }

        .section::-webkit-scrollbar-track {
            background: rgba(31, 41, 55, 0.3);
            border-radius: 4px;
        }

        .section::-webkit-scrollbar-thumb {
            background: rgba(75, 85, 99, 0.5);
            border-radius: 4px;
        }

        .section::-webkit-scrollbar-thumb:hover {
            background: rgba(75, 85, 99, 0.7);
        }

        /* Budget Progress Bar */
        .budget-progress {
            width: 100%;
            height: 6px;
            background: rgba(31, 41, 55, 0.5);
            border-radius: 3px;
            overflow: hidden;
            margin: 10px 0;
        }

        .budget-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #10b981, #059669);
            transition: width 0.3s ease;
            border-radius: 3px;
        }

        .budget-progress-bar.warning {
            background: linear-gradient(90deg, #f59e0b, #d97706);
        }

        .budget-progress-bar.danger {
            background: linear-gradient(90deg, #ef4444, #dc2626);
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .dashboard-container {
                grid-template-columns: 1fr;
            }

            .sidebar {
                display: none;
            }

            .content-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }

            .search-bar {
                flex-direction: column;
            }

            .search-input {
                min-width: auto;
            }

            .form-grid {
                grid-template-columns: 1fr;
            }

            .action-grid {
                grid-template-columns: 1fr;
            }
        }

        .dashboard-container {
            /* Hidden by default */
            grid-template-columns: 250px 1fr;
            height: 100vh;
        }

        /* Fix 6: Add better loading state styles */
        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .btn .btn-text {
            display: inline;
        }

        .btn .loading {
            display: none;
            width: 16px;
            height: 16px;
            margin-left: 8px;
        }

