:root {
            --primary-color: #0d6efd;
            --success-color: #198754;
            --danger-color: #dc3545;
            --warning-color: #ffc107;
            --bg-darker: #121212;
            --bg-card: #1e1e1e;
        }

        body {
            background-color: var(--bg-darker);
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        /* Used when app is active to allow scrolling behind mobile nav */
        body.app-active {
            padding-bottom: 70px; 
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-darker); }
        ::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #555; }

        /* App Layout */
        .app-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Cards */
        .card {
            background-color: var(--bg-card);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 24px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            transition: transform 0.2s ease;
        }

        .card:hover:not(.no-hover) {
            transform: translateY(-2px);
        }

        .icon-box {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        /* Navigation */
        .top-nav {
            background-color: var(--bg-card);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding: 15px 20px;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-pills .nav-link {
            color: #adb5bd;
            border-radius: 12px;
            padding: 10px 20px;
            margin-right: 5px;
            cursor: pointer;
        }

        .nav-pills .nav-link.active {
            background-color: var(--primary-color);
            color: white;
        }

        .nav-pills .nav-link:hover:not(.active) {
            background-color: rgba(255,255,255,0.05);
            color: white;
        }

        /* 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); }
        }

        /* Utilities */
        .text-income { color: #20c997 !important; }
        .text-expense { color: #ff6b6b !important; }
        .text-transfer { color: #6fb2ff !important; }
        
        .progress {
            height: 10px;
            background-color: #2b2b2b;
            border-radius: 5px;
        }

        .transaction-item {
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding: 12px 0;
        }
        .transaction-item:last-child {
            border-bottom: none;
        }

        /* Month Collapse icon */
        .cursor-pointer { cursor: pointer; }
        .transition-icon { transition: transform 0.3s ease; }
        .rotate-icon { transform: rotate(-90deg); }

        /* Softer Table Container */
        .table-rounded-container {
            border-radius: 24px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.05);
            background-color: var(--bg-card);
        }
        
        .modal-content {
            border-radius: 24px;
        }

        /* Mobile Bottom Nav */
        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: var(--bg-card);
            border-top: 1px solid rgba(255,255,255,0.1);
            z-index: 1000;
            padding: 10px;
            justify-content: space-around;
        }

        .bottom-nav .nav-link {
            text-align: center;
            color: #adb5bd;
            font-size: 0.8rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        
        .bottom-nav .nav-link i {
            font-size: 1.2rem;
        }

        .bottom-nav .nav-link.active {
            color: var(--primary-color);
        }

        .icon-select-btn {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            transition: all 0.2s;
        }
        .btn-check:checked + .icon-select-btn {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
            transform: scale(1.05);
        }

        @media (max-width: 768px) {
            #mainApp .bottom-nav { display: flex; }
            body.app-active { padding-bottom: 80px; }
            #mainApp .app-container { padding: 10px; }
        }

        .w-20px {
            width: 20px;
            text-align: center;
        }

        /* Sync Loader */
        .sync-loader {
            width: 48px;
            height: 48px;
            border: 5px solid #333;
            border-bottom-color: var(--primary-color);
            border-radius: 50%;
            display: inline-block;
            box-sizing: border-box;
            animation: rotation 1s linear infinite;
        }
        @keyframes rotation {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Auth Specifics */
        .auth-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }