 :root {
            --primary-color: #4361ee;
            --primary-dark: #3a0ca3;
            --primary-light: #4895ef;
            --accent-color: #f72585;
            --secondary-color: #4cc9f0;
            --text-primary: #212121;
            --text-secondary: #757575;
            --divider-color: #e0e0e0;
            --background: #ffffff;
            --surface: #f5f5f5;
            --error-color: #f44336;
            --success-color: #4caf50;
            --warning-color: #ff9800;
            --info-color: #2196f3;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
            --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
            --elevation-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        [data-theme="dark"] {
            --primary-color: #4361ee;
            --primary-dark: #3a0ca3;
            --primary-light: #4895ef;
            --accent-color: #f72585;
            --secondary-color: #4cc9f0;
            --text-primary: #f5f5f5;
            --text-secondary: #bdbdbd;
            --divider-color: #424242;
            --background: #121212;
            --surface: #1e1e1e;
            --error-color: #f44336;
            --success-color: #4caf50;
            --warning-color: #ff9800;
            --info-color: #2196f3;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Roboto', sans-serif;
        }

        body {
            background-color: var(--background);
            color: var(--text-primary);
            transition: background-color 0.3s, color 0.3s;
            padding-bottom: 80px;
            min-height: 100vh;
        }

        /* Login Screen */
        .login-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            padding: 20px;
            text-align: center;
        }

        .login-logo {
            width: 100px;
            height: 100px;
            background-color: var(--primary-color);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: white;
            font-size: 48px;
            box-shadow: var(--shadow-md);
        }

        .login-title {
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--primary-color);
        }

        .pin-input {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .pin-digit {
            width: 50px;
            height: 50px;
            border: 2px solid var(--divider-color);
            border-radius: 8px;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            transition: all 0.3s;
        }

        .pin-digit:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
        }

        .login-btn {
            padding: 12px 24px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }

        .login-btn:hover {
            background-color: var(--primary-dark);
        }

        /* App Bar dengan efek glass morphism */
        .app-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: rgba(var(--primary-color-rgb), 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: white;
            display: flex;
            align-items: center;
            padding: 0 16px;
            box-shadow: var(--shadow-sm);
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .app-title {
            font-size: 20px;
            font-weight: 500;
            margin-left: 12px;
            flex-grow: 1;
        }

        .app-icon {
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .app-actions {
            display: flex;
            gap: 12px;
        }

        /* Main Content */
        .content {
            margin-top: 60px;
            padding: 16px;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
            display: none; /* Awalnya disembunyikan sampai login */
        }

        .section-title {
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 16px;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title i {
            font-size: 20px;
        }

        /* Cards dengan efek modern */
        .card {
            background-color: var(--surface);
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            padding: 16px;
            margin-bottom: 16px;
            transition: var(--elevation-transition);
            border: 1px solid rgba(var(--text-primary-rgb), 0.05);
        }

        .card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .card-title {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .card-value {
            font-size: 24px;
            font-weight: 700;
        }

        .income {
            color: var(--success-color);
        }

        .expense {
            color: var(--error-color);
        }

        .balance {
            color: var(--primary-color);
        }

        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 16px;
        }

        /* Floating Action Button dengan animasi */
        .fab {
            position: fixed;
            bottom: 80px;
            right: 16px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background-color: var(--accent-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-lg);
            cursor: pointer;
            z-index: 900;
            transition: all 0.3s;
            border: none;
            outline: none;
            display: none; /* Awalnya disembunyikan sampai login */
        }

        .fab:hover {
            transform: scale(1.1) rotate(10deg);
            box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.3);
        }

        .fab:active {
            transform: scale(0.95);
        }

        .fab-icon {
            font-size: 24px;
        }

        /* Bottom Navigation dengan indikator aktif */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 72px;
            background-color: var(--surface);
            display: flex;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            z-index: 1000;
            padding: 8px 0;
            border-top: 1px solid var(--divider-color);
            display: none; /* Awalnya disembunyikan sampai login */
        }

        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 12px;
            position: relative;
            transition: all 0.3s;
        }

        .nav-item.active {
            color: var(--primary-color);
        }

        .nav-item.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: var(--primary-color);
        }

        .nav-icon {
            font-size: 24px;
            margin-bottom: 4px;
            transition: all 0.3s;
        }

        .nav-item.active .nav-icon {
            transform: translateY(-5px);
        }

        /* Transaction List dengan animasi */
        .transaction-list {
            list-style: none;
        }

        .transaction-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid var(--divider-color);
            transition: all 0.3s;
            opacity: 0;
            transform: translateY(10px);
        }

        .transaction-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .transaction-info {
            display: flex;
            align-items: center;
            flex: 1;
            min-width: 0;
        }

        .transaction-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            color: white;
            flex-shrink: 0;
            box-shadow: var(--shadow-sm);
        }

        .transaction-details {
            flex: 1;
            min-width: 0;
        }

        .transaction-category {
            font-weight: 500;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .transaction-note {
            font-size: 12px;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .transaction-amount {
            font-weight: 500;
            margin-left: 8px;
            flex-shrink: 0;
        }

        .transaction-actions {
            display: flex;
            gap: 8px;
            margin-left: 8px;
        }

        .action-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .action-btn:hover {
            background-color: rgba(var(--text-primary-rgb), 0.1);
        }

        .edit-btn {
            color: var(--info-color);
        }

        .delete-btn {
            color: var(--error-color);
        }

        /* Modal dengan animasi */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .modal.show {
            opacity: 1;
        }

        .modal-content {
            background-color: var(--surface);
            width: 90%;
            max-width: 420px;
            border-radius: 16px;
            overflow: hidden;
            transform: translateY(20px);
            transition: transform 0.3s;
            box-shadow: var(--shadow-lg);
            max-height: 90vh;
            display: flex;
            flex-direction: column;
        }

        .modal.show .modal-content {
            transform: translateY(0);
        }

        .modal-header {
            padding: 16px;
            background-color: var(--primary-color);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .modal-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
        }

        .modal-title {
            font-size: 18px;
            font-weight: 500;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }

        .modal-close:hover {
            background-color: rgba(255,255,255,0.1);
        }

        .modal-body {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
        }

        .modal-footer {
            padding: 12px 16px;
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            border-top: 1px solid var(--divider-color);
        }

        /* Form Elements */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 500;
        }

        .form-input {
            width: 100%;
            padding: 14px 12px;
            border: 1px solid var(--divider-color);
            border-radius: 8px;
            background-color: var(--surface);
            color: var(--text-primary);
            font-size: 16px;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .form-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
            outline: none;
        }

        .form-select {
            width: 100%;
            padding: 14px 12px;
            border: 1px solid var(--divider-color);
            border-radius: 8px;
            background-color: var(--surface);
            color: var(--text-primary);
            font-size: 16px;
            transition: border-color 0.3s, box-shadow 0.3s;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 16px;
        }

        .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
            outline: none;
        }

        .radio-group {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
        }

        .radio-option {
            display: flex;
            align-items: center;
            flex: 1;
        }

        .radio-input {
            appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid var(--divider-color);
            border-radius: 50%;
            margin-right: 8px;
            position: relative;
            cursor: pointer;
            transition: all 0.3s;
        }

        .radio-input:checked {
            border-color: var(--primary-color);
        }

        .radio-input:checked::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: var(--primary-color);
        }

        /* Buttons */
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover:not(:disabled) {
            background-color: var(--primary-dark);
            box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
        }

        .btn-secondary {
            background-color: var(--surface);
            color: var(--text-primary);
            border: 1px solid var(--divider-color);
        }

        .btn-secondary:hover:not(:disabled) {
            background-color: var(--divider-color);
        }

        .btn-danger {
            background-color: var(--error-color);
            color: white;
        }

        .btn-danger:hover:not(:disabled) {
            background-color: #d32f2f;
            box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
        }

        .btn-block {
            display: block;
            width: 100%;
        }

        .btn-icon {
            padding: 8px;
            border-radius: 50%;
            min-width: 36px;
            min-height: 36px;
        }

        /* Tabs */
        .tabs {
            display: flex;
            border-bottom: 1px solid var(--divider-color);
            margin-bottom: 16px;
            position: relative;
        }

        .tab {
            padding: 12px 16px;
            cursor: pointer;
            position: relative;
            font-weight: 500;
            color: var(--text-secondary);
            transition: all 0.3s;
        }

        .tab.active {
            color: var(--primary-color);
        }

        .tab-indicator {
            position: absolute;
            bottom: -1px;
            left: 0;
            height: 2px;
            background-color: var(--primary-color);
            transition: all 0.3s;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* Bill Item */
        .bill-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid var(--divider-color);
            transition: all 0.3s;
        }

        .bill-info {
            flex: 1;
            min-width: 0;
        }

        .bill-name {
            font-weight: 500;
            margin-bottom: 4px;
        }

        .bill-due {
            font-size: 12px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .bill-status {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            margin-left: 8px;
        }

        .status-paid {
            background-color: var(--success-color);
            color: white;
        }

        .status-unpaid {
            background-color: var(--error-color);
            color: white;
        }

        .bill-actions {
            display: flex;
            gap: 8px;
            margin-left: 8px;
        }

        /* Chart Container */
        .chart-container {
            position: relative;
            height: 280px;
            width: 100%;
            background-color: var(--surface);
            border-radius: 12px;
            padding: 16px;
            box-shadow: var(--shadow-sm);
        }

        /* Theme Switch */
        .theme-switch {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }

        .theme-switch:hover {
            background-color: rgba(255,255,255,0.1);
        }

        /* App Menu */
        .app-menu {
            position: fixed;
            top: 60px;
            right: 16px;
            background-color: var(--surface);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            z-index: 1000;
            width: 240px;
            overflow: hidden;
            transform-origin: top right;
            transform: scale(0);
            opacity: 0;
            transition: all 0.2s;
        }

        .app-menu.show {
            transform: scale(1);
            opacity: 1;
        }

        .menu-item {
            padding: 14px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--text-primary);
            text-decoration: none;
            transition: background-color 0.3s;
            border-bottom: 1px solid var(--divider-color);
        }

        .menu-item:last-child {
            border-bottom: none;
        }

        .menu-item:hover {
            background-color: rgba(var(--primary-color-rgb), 0.1);
        }

        .menu-item i {
            font-size: 20px;
            width: 24px;
            text-align: center;
        }

        /* Settings Page */
        .settings-section {
            margin-bottom: 24px;
        }

        .settings-title {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 12px;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .settings-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--divider-color);
        }

        .settings-item:last-child {
            border-bottom: none;
        }

        .settings-label {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .settings-label i {
            font-size: 20px;
            color: var(--text-secondary);
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 48px;
            height: 24px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--primary-color);
        }

        input:checked + .slider:before {
            transform: translateX(24px);
        }

        /* About Page */
        .about-container {
            text-align: center;
            padding: 20px 0;
        }

        .app-logo {
            width: 100px;
            height: 100px;
            background-color: var(--primary-color);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 48px;
            box-shadow: var(--shadow-md);
        }

        .app-version {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        .developer-info {
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid var(--divider-color);
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-secondary);
        }

        .empty-state i {
            font-size: 48px;
            margin-bottom: 16px;
            color: var(--divider-color);
        }

        .empty-state p {
            margin-top: 8px;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .fade-in {
            animation: fadeIn 0.5s forwards;
        }

        .slide-in {
            animation: slideIn 0.5s forwards;
        }

        /* Responsive */
        @media (min-width: 600px) {
            .content {
                padding: 24px;
            }
            
            .cards-container {
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            }
        }

        @media (min-width: 768px) {
            .bottom-nav {
                left: 50%;
                transform: translateX(-50%);
                width: 100%;
                max-width: 1200px;
                border-radius: 24px 24px 0 0;
                bottom: 10px;
                height: 64px;
            }
            
            .fab {
                bottom: 74px;
                right: calc(50% - 580px);
            }
        }

        .activation-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            padding: 20px;
            text-align: center;
            background-color: var(--background-color);
            color: var(--text-primary);
        }
        
        .activation-logo {
            width: 80px;
            height: 80px;
            background-color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }
        
        .activation-logo i {
            font-size: 40px;
            color: white;
        }
        
        .activation-title {
            font-size: 24px;
            margin-bottom: 10px;
            color: var(--text-primary);
        }
        
        .activation-input {
            width: 100%;
            max-width: 300px;
            margin: 20px 0;
        }
        
        .activation-input input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 16px;
            background-color: var(--input-background);
            color: var(--text-primary);
        }
        
        .activation-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .activation-btn:hover {
            background-color: var(--primary-dark-color);
        }
        
        .shake {
            animation: shake 0.5s;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

/* Style untuk container periode */
.period-container {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding: 0 15px;
}

/* Style untuk tab periode */
.period-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  color: #666;
}

.period-tab.active {
  color: #00a859;
  border-bottom-color: #00a859;
  font-weight: 600;
}

.period-tab:hover {
  background-color: rgba(0, 168, 89, 0.1);
}

/* Style untuk konten periode */
.period-content {
  display: none;
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}

.period-content.active {
  display: block;
}

/* Style untuk card statistik */
.stats-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stats-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.stats-value {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.stats-change {
  font-size: 12px;
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.stats-change.up {
  color: #00a859;
}

.stats-change.down {
  color: #e74c3c;
}

/* Style untuk grafik/chart placeholder */
.chart-placeholder {
  height: 200px;
  background: #f8f9fa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  margin-top: 20px;
}

/* Animasi */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  .period-tab {
    font-size: 14px;
    padding: 10px 0;
  }
  
  .stats-value {
    font-size: 20px;
  }
}
     /* ===== PERIOD SELECTOR STYLES ===== */
.period-selector {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 5px;
  box-shadow: var(--shadow-sm);
}

.period-btn {
  flex: 1;
  padding: 10px 5px;
  text-align: center;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: calc(var(--border-radius) - 2px);
  transition: all 0.3s ease;
}

.period-btn.active {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.period-btn:not(.active):hover {
  background-color: var(--hover-color);
}

/* Date range display */
.date-range {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.date-nav {
  display: flex;
  gap: 5px;
}

.date-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--card-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-nav-btn:hover {
  background-color: var(--hover-color);
}

.date-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.date-nav-btn i {
  font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .period-btn {
    padding: 8px 2px;
    font-size: 13px;
  }
  
  .date-range {
    font-size: 13px;
  }
  
  .date-nav-btn {
    width: 28px;
    height: 28px;
  }
}
     /* ===== PERIOD SELECTOR STYLES ===== */
     .period-selector {
        display: flex;
        justify-content: space-between;
        margin: 15px 0;
        background-color: var(--card-bg);
        border-radius: var(--border-radius);
        padding: 5px;
        box-shadow: var(--shadow-sm);
      }
      
      .period-btn {
        flex: 1;
        padding: 10px 5px;
        text-align: center;
        border: none;
        background: none;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
        cursor: pointer;
        border-radius: calc(var(--border-radius) - 2px);
        transition: all 0.3s ease;
      }
      
      .period-btn.active {
        background-color: var(--primary-color);
        color: white;
        font-weight: 600;
        box-shadow: var(--shadow-xs);
      }
      
      .period-btn:not(.active):hover {
        background-color: var(--hover-color);
      }
      
      /* Date range display */
      .date-range {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding: 0 10px;
        font-size: 14px;
        color: var(--text-secondary);
      }
      
      .date-nav {
        display: flex;
        gap: 5px;
      }
      
      .date-nav-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background-color: var(--card-bg);
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      
      .date-nav-btn:hover {
        background-color: var(--hover-color);
      }
      
      .date-nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
      
      .date-nav-btn i {
        font-size: 18px;
      }
      
      /* Responsive adjustments */
      @media (max-width: 480px) {
        .period-btn {
          padding: 8px 2px;
          font-size: 13px;
        }
        
        .date-range {
          font-size: 13px;
        }
        
        .date-nav-btn {
          width: 28px;
          height: 28px;
        }
      }