@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
        
        * {
            font-family: 'Inter', sans-serif;
        }
        
        .gradient-bg {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .card-shadow {
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .hover-scale {
            transition: transform 0.2s ease-in-out;
        }
        
        .hover-scale:hover {
            transform: scale(1.02);
        }
        
        .slide-in {
            animation: slideIn 0.5s ease-out;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .mobile-menu {
            transform: translateX(-100%);
            transition: transform 0.3s ease-in-out;
        }
        
        .mobile-menu.open {
            transform: translateX(0);
        }

        /* Mobile menu overlay */
        .mobile-menu-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 40;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease-in-out;
        }

        .mobile-menu-overlay.open {
            opacity: 1;
            visibility: visible;
        }
        
        .chart-container {
            position: relative;
            height: 300px;
        }
        
        .category-card {
            background: linear-gradient(145deg, #ffffff, #f0f0f0);
            box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
            transition: all 0.3s ease;
            cursor: pointer;
            padding: 1rem;
            border-radius: 12px;
            text-align: center;
        }
        
        .category-card:hover {
            transform: translateY(-2px);
            box-shadow: 12px 12px 20px #d1d1d1, -12px -12px 20px #ffffff;
        }
        
        .category-card.selected {
            background: linear-gradient(145deg, #3b82f6, #2563eb);
            color: white;
            box-shadow: inset 4px 4px 8px rgba(0,0,0,0.2), inset -4px -4px 8px rgba(255,255,255,0.1);
        }
        
        .category-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .progress-bar {
            height: 8px;
            background: #e5e7eb;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #10b981, #059669);
            border-radius: 4px;
            transition: width 0.5s ease;
        }

        .progress-fill.warning {
            background: linear-gradient(90deg, #f59e0b, #d97706);
        }

        .progress-fill.danger {
            background: linear-gradient(90deg, #ef4444, #dc2626);
        }

        .goal-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 16px;
            padding: 24px;
            position: relative;
            overflow: hidden;
        }

        .needs-color { color: #10b981; }
        .wants-color { color: #f59e0b; }
        .savings-color { color: #3b82f6; }
        .income-color { color: #059669; }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 16px 20px;
            border-radius: 12px;
            color: white;
            font-weight: 500;
            z-index: 9999;
            max-width: 400px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            animation: slideInRight 0.3s ease;
        }

        .notification.success {
            background: linear-gradient(135deg, #10b981, #059669);
        }

        .notification.error {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }

        .notification.warning {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }

        .notification.info {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* Premium Custom Dropdown Styles */
        .modern-select-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        /* Hide native select completely */
        .modern-select {
            position: absolute;
            opacity: 0;
            pointer-events: none;
            z-index: -1;
        }

        /* Custom dropdown trigger */
        .custom-select-trigger {
            width: 100%;
            padding: 1rem 3rem 1rem 3.5rem;
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-radius: 1rem;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            backdrop-filter: blur(20px);
            color: #374151;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.08),
                0 4px 16px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .custom-select-trigger::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .custom-select-trigger:hover {
            border-color: rgba(59, 130, 246, 0.4);
            transform: translateY(-2px);
            box-shadow: 
                0 12px 40px rgba(59, 130, 246, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }

        .custom-select-trigger:hover::before {
            opacity: 1;
        }

        .custom-select-trigger.active {
            border-color: rgba(59, 130, 246, 0.6);
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.05));
            box-shadow: 
                0 0 0 4px rgba(59, 130, 246, 0.1),
                0 16px 48px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .custom-select-content {
            display: flex;
            align-items: center;
            flex: 1;
            min-width: 0;
        }

        .custom-select-text {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-left: 0.75rem;
        }

        .modern-select-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.1rem;
            color: #6b7280;
            pointer-events: none;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 2;
        }

        .custom-select-arrow {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            margin-right: 0.5rem;
        }

        .custom-select-arrow svg {
            width: 16px;
            height: 16px;
            fill: #6b7280;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .custom-select-trigger:hover .modern-select-icon,
        .custom-select-trigger.active .modern-select-icon {
            color: #3b82f6;
            transform: translateY(-50%) scale(1.1);
        }

        .custom-select-trigger:hover .custom-select-arrow svg,
        .custom-select-trigger.active .custom-select-arrow svg {
            fill: #3b82f6;
        }

        .custom-select-trigger.active .custom-select-arrow {
            transform: rotate(180deg);
        }

        /* Custom dropdown options */
        .custom-select-options {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(24px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 1rem;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.15),
                0 8px 32px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            z-index: 1000;
            max-height: 280px;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px) scale(0.95);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .custom-select-options.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .custom-select-options-inner {
            max-height: 280px;
            overflow-y: auto;
            padding: 0.5rem;
        }

        /* Custom scrollbar */
        .custom-select-options-inner::-webkit-scrollbar {
            width: 6px;
        }

        .custom-select-options-inner::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 3px;
        }

        .custom-select-options-inner::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            border-radius: 3px;
        }

        .custom-select-options-inner::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #2563eb, #1e40af);
        }

        .custom-select-option {
            padding: 0.875rem 1rem;
            border-radius: 0.75rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.875rem;
            font-weight: 500;
            color: #374151;
            position: relative;
            overflow: hidden;
            margin-bottom: 0.25rem;
        }

        .custom-select-option::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.05));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .custom-select-option:hover {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(29, 78, 216, 0.04));
            transform: translateX(4px);
            box-shadow: 
                0 8px 25px rgba(59, 130, 246, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .custom-select-option:hover::before {
            opacity: 1;
        }

        .custom-select-option.selected {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(29, 78, 216, 0.08));
            color: #1d4ed8;
            font-weight: 600;
            box-shadow: 
                0 4px 16px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .custom-select-option-text {
            flex: 1;
            display: flex;
            align-items: center;
        }

        .custom-select-option-check {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .custom-select-option.selected .custom-select-option-check {
            opacity: 1;
            transform: scale(1);
        }

        .custom-select-option-check svg {
            width: 16px;
            height: 16px;
            fill: #1d4ed8;
        }

        /* Dark Mode Styles */
        .dark .custom-select-trigger {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.15));
            border-color: rgba(255, 255, 255, 0.15);
            color: #f1f5f9;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.3),
                0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .dark .custom-select-trigger:hover {
            border-color: rgba(96, 165, 250, 0.4);
            box-shadow: 
                0 12px 40px rgba(96, 165, 250, 0.2),
                0 8px 24px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }

        .dark .custom-select-trigger.active {
            border-color: rgba(96, 165, 250, 0.6);
            background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(59, 130, 246, 0.08));
            box-shadow: 
                0 0 0 4px rgba(96, 165, 250, 0.15),
                0 16px 48px rgba(96, 165, 250, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .dark .modern-select-icon {
            color: #9ca3af;
        }

        .dark .custom-select-arrow svg {
            fill: #9ca3af;
        }

        .dark .custom-select-trigger:hover .modern-select-icon,
        .dark .custom-select-trigger.active .modern-select-icon {
            color: #60a5fa;
        }

        .dark .custom-select-trigger:hover .custom-select-arrow svg,
        .dark .custom-select-trigger.active .custom-select-arrow svg {
            fill: #60a5fa;
        }

        .dark .custom-select-options {
            background: rgba(31, 41, 55, 0.95);
            border-color: rgba(255, 255, 255, 0.1);
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.4),
                0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .dark .custom-select-options-inner::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }

        .dark .custom-select-options-inner::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #60a5fa, #3b82f6);
        }

        .dark .custom-select-options-inner::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #93c5fd, #60a5fa);
        }

        .dark .custom-select-option {
            color: #f1f5f9;
        }

        .dark .custom-select-option::before {
            background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(59, 130, 246, 0.08));
        }

        .dark .custom-select-option:hover {
            background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(59, 130, 246, 0.06));
            box-shadow: 
                0 8px 25px rgba(96, 165, 250, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .dark .custom-select-option.selected {
            background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(59, 130, 246, 0.12));
            color: #93c5fd;
            box-shadow: 
                0 4px 16px rgba(96, 165, 250, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .dark .custom-select-option-check svg {
            fill: #93c5fd;
        }

        /* Mobile Responsive Enhancements */
        @media (max-width: 640px) {
            .custom-select-trigger {
                padding: 1.25rem 3.5rem 1.25rem 4rem;
                font-size: 1rem;
                border-radius: 0.875rem;
                min-height: 3.5rem;
            }

            .modern-select-icon {
                left: 1.25rem;
                font-size: 1.25rem;
            }

            .custom-select-arrow {
                width: 24px;
                height: 24px;
                margin-right: 0.75rem;
            }

            .custom-select-arrow svg {
                width: 18px;
                height: 18px;
            }

            .custom-select-option {
                padding: 1.125rem 1.25rem;
                font-size: 1rem;
                min-height: 3.5rem;
            }

            .custom-select-options {
                max-height: 320px;
            }

            .custom-select-options-inner {
                max-height: 320px;
            }
        }

        /* Special Finance App Select Variants */
        .custom-select-trigger.transaction-type {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.06));
            border-color: rgba(16, 185, 129, 0.25);
        }

        .custom-select-trigger.transaction-type:hover {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.09));
            border-color: rgba(16, 185, 129, 0.4);
            box-shadow: 
                0 12px 40px rgba(16, 185, 129, 0.2),
                0 8px 24px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }

        .custom-select-trigger.category-select {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(29, 78, 216, 0.06));
            border-color: rgba(59, 130, 246, 0.25);
        }

        .custom-select-trigger.category-select:hover {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(29, 78, 216, 0.09));
            border-color: rgba(59, 130, 246, 0.4);
        }

        .custom-select-trigger.payment-mode {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(109, 40, 217, 0.06));
            border-color: rgba(139, 92, 246, 0.25);
        }

        .custom-select-trigger.payment-mode:hover {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(109, 40, 217, 0.09));
            border-color: rgba(139, 92, 246, 0.4);
            box-shadow: 
                0 12px 40px rgba(139, 92, 246, 0.2),
                0 8px 24px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }

        /* Dark mode variants */
        .dark .custom-select-trigger.transaction-type {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.09));
            border-color: rgba(16, 185, 129, 0.3);
        }

        .dark .custom-select-trigger.category-select {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(29, 78, 216, 0.09));
            border-color: rgba(59, 130, 246, 0.3);
        }

        .dark .custom-select-trigger.payment-mode {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(109, 40, 217, 0.09));
            border-color: rgba(139, 92, 246, 0.3);
        }

        /* Enhanced Dark Mode Styles */
        .dark {
            background-color: #0f172a;
            color: #f1f5f9;
        }
        
        .dark .gradient-bg {
            background: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
        }
        
        .dark .card-shadow {
            background-color: #1e293b;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            color: #f1f5f9;
        }
        
        .dark .category-card {
            background: linear-gradient(145deg, #374151, #1f2937);
            box-shadow: 8px 8px 16px #111827, -8px -8px 16px #4b5563;
            color: #f1f5f9;
        }
        
        .dark .category-card:hover {
            box-shadow: 12px 12px 20px #111827, -12px -12px 20px #4b5563;
        }
        
        .dark .category-card.selected {
            background: linear-gradient(145deg, #059669, #047857);
            color: white;
        }
        
        .dark .text-gray-800 {
            color: #f1f5f9 !important;
        }
        
        .dark .text-gray-700 {
            color: #e2e8f0 !important;
        }
        
        .dark .text-gray-600 {
            color: #cbd5e1 !important;
        }
        
        .dark .text-gray-500 {
            color: #94a3b8 !important;
        }
        
        .dark .bg-white {
            background-color: #1e293b !important;
        }
        
        .dark .bg-gray-50 {
            background-color: #374151 !important;
        }
        
        .dark .bg-gray-100 {
            background-color: #4b5563 !important;
        }
        
        .dark input, .dark select, .dark textarea {
            background-color: #374151 !important;
            color: #f1f5f9 !important;
            border-color: #4b5563 !important;
        }

        .dark .border-gray-200 {
            border-color: #4b5563 !important;
        }

        .dark .border-gray-300 {
            border-color: #6b7280 !important;
        }

        /* Transaction List Dark Mode Fix */
        .dark .transaction-item {
            background-color: #374151 !important;
            color: #f1f5f9 !important;
        }

        .dark .transaction-item:hover {
            background-color: #4b5563 !important;
        }

        .dark .transaction-item .text-gray-600 {
            color: #d1d5db !important;
        }

        .dark .transaction-item .text-gray-500 {
            color: #9ca3af !important;
        }

        /* Modern Navigation Pill Style */
        .nav-btn {
            position: relative;
            padding: 0.75rem 1.25rem;
            border-radius: 2rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 500;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            overflow: hidden;
            backdrop-filter: blur(10px);
            border: 1px solid transparent;
        }

        .nav-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
            border-radius: 2rem;
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: -1;
        }

        .nav-btn.active {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: 
                0 8px 32px rgba(255, 255, 255, 0.1),
                0 4px 16px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }

        .nav-btn.active::before {
            opacity: 1;
        }

        .nav-btn:hover:not(.active) {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(255, 255, 255, 0.05);
        }

        .nav-btn:hover:not(.active)::before {
            opacity: 0.5;
        }

        /* Icon transitions */
        .nav-btn i {
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .nav-btn.active i {
            transform: scale(1.1);
            filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
        }

        /* Active state glow effect */
        .nav-btn.active {
            animation: pillGlow 2s ease-in-out infinite alternate;
        }

        @keyframes pillGlow {
            0% {
                box-shadow: 
                    0 8px 32px rgba(255, 255, 255, 0.1),
                    0 4px 16px rgba(255, 255, 255, 0.05),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
            }
            100% {
                box-shadow: 
                    0 12px 40px rgba(255, 255, 255, 0.15),
                    0 6px 20px rgba(255, 255, 255, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
            }
        }

        /* Tag Styles */
        .tag {
            display: inline-block;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            margin: 0.125rem;
        }

        .dark .tag {
            background: linear-gradient(135deg, #059669, #047857);
        }

        /* Filter Styles */
        .filter-container {
            background: #f8fafc;
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .dark .filter-container {
            background: #374151;
        }

        /* 50/30/20 Rule Indicator */
        .rule-indicator {
            display: inline-flex;
            align-items: center;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-size: 0.875rem;
            font-weight: 500;
        }

        .rule-indicator.good {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
        }

        .rule-indicator.warning {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
        }

        .rule-indicator.danger {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
        }

        /* Category Color Coding */
        .needs-category {
            background: linear-gradient(135deg, #10b981, #059669) !important;
            color: white !important;
        }
        
        .wants-category {
            background: linear-gradient(135deg, #f59e0b, #d97706) !important;
            color: white !important;
        }
        
        .savings-category {
            background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
            color: white !important;
        }
        
        .income-category {
            background: linear-gradient(135deg, #059669, #047857) !important;
            color: white !important;
        }

        /* Category borders for transaction items */
        .transaction-item.needs-border {
            border-left: 4px solid #10b981;
        }
        
        .transaction-item.wants-border {
            border-left: 4px solid #f59e0b;
        }
        
        .transaction-item.savings-border {
            border-left: 4px solid #3b82f6;
        }
        
        .transaction-item.income-border {
            border-left: 4px solid #059669;
        }

        /* Quick Add Buttons */
        .quick-add-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .quick-add-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1rem;
            border-radius: 12px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            font-weight: 600;
            margin-right: 20px;
        }

        .quick-add-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .quick-add-btn.income {
            background: linear-gradient(135deg, #10b981, #059669);
        }

        .quick-add-btn.expense {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }

        .quick-add-btn.savings {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
        }

        /* Layout Customization */
        .layout-controls {
            background: #f8fafc;
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 2rem;
            border: 2px dashed #cbd5e1;
        }

        .dark .layout-controls {
            background: #374151;
            border-color: #6b7280;
        }

        /* Layout Settings Modal */
        .layout-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(8px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .layout-modal.show {
            opacity: 1;
            visibility: visible;
        }

        .layout-modal-content {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .dark .layout-modal-content {
            background: #1f2937;
        }

        .layout-modal.show .layout-modal-content {
            transform: scale(1);
        }

        .layout-item {
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            padding: 0.75rem;
            margin: 0.5rem 0;
            cursor: move;
            transition: all 0.3s ease;
            user-select: none;
        }

        .dark .layout-item {
            background: #4b5563;
            border-color: #6b7280;
            color: white;
        }

        .layout-item:hover {
            border-color: #3b82f6;
            transform: translateY(-1px);
        }

        .layout-item.dragging {
            opacity: 0.5;
            transform: rotate(5deg);
        }

        .layout-section {
            min-height: 60px;
            border: 2px dashed transparent;
            border-radius: 8px;
            padding: 0.5rem;
            transition: all 0.3s ease;
        }

        .layout-section.drag-over {
            border-color: #3b82f6;
            background-color: rgba(59, 130, 246, 0.1);
        }

        /* Button disabled state */
        .btn-disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Swipe Actions */
        .transaction-item {
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .swipe-actions {
            position: absolute;
            top: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            z-index: 1;
        }

        .swipe-actions.left {
            right: 0;
            background: linear-gradient(90deg, #ef4444, #dc2626);
        }

        .swipe-actions.right {
            left: 0;
            background: linear-gradient(90deg, #3b82f6, #2563eb);
        }

        .swipe-action-btn {
            padding: 0 20px;
            color: white;
            font-size: 1.2rem;
            height: 100%;
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .swipe-action-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .transaction-content {
            position: relative;
            z-index: 2;
            background: inherit;
            transition: transform 0.3s ease;
        }

        /* Floating Add Button */
        .floating-add-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1000;
            border: none;
        }

        .floating-add-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
        }

        .floating-add-btn:active {
            transform: scale(0.95);
        }

        /* Pull to Refresh */
        .pull-to-refresh {
            position: relative;
            overflow: hidden;
        }

        .refresh-indicator {
            position: absolute;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .refresh-indicator.visible {
            top: 20px;
        }

        .refresh-indicator.loading {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from { transform: translateX(-50%) rotate(0deg); }
            to { transform: translateX(-50%) rotate(360deg); }
        }

        /* Swipe feedback */
        .swipe-feedback {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 12px 24px;
            border-radius: 25px;
            font-size: 0.9rem;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .swipe-feedback.show {
            opacity: 1;
        }

        /* Background Animation Styles */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
            pointer-events: none;
        }

        .floating-element {
            position: absolute;
            opacity: 0.1;
            animation: float 20s infinite linear;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.1;
            }
            90% {
                opacity: 0.1;
            }
            100% {
                transform: translateY(-100px) rotate(360deg);
                opacity: 0;
            }
        }

        .floating-element:nth-child(odd) {
            animation-duration: 25s;
        }

        .floating-element:nth-child(even) {
            animation-duration: 15s;
        }

        /* Filter Toggle Styles */
        .filter-toggle-btn {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 1rem;
        }

        .filter-toggle-btn:hover {
            background: linear-gradient(135deg, #2563eb, #1e40af);
            transform: translateY(-1px);
        }

        .filter-container.hidden {
            display: none;
        }

        @media (max-width: 640px) {
            .chart-container {
                height: 250px;
            }
            
            .category-card {
                padding: 0.75rem;
            }
            
            .category-icon {
                font-size: 1.5rem;
            }

            /* Mobile Navigation Enhancements */
            .nav-btn {
                padding: 1rem 1.5rem;
                text-align: left;
                width: 100%;
                margin: 0.25rem 0;
                border-radius: 1rem;
                font-size: 1rem;
                justify-content: flex-start;
                color: #374151;
            }

            .dark .nav-btn {
                color: #d1d5db;
            }

            .nav-btn.active {
                background: linear-gradient(135deg, #3b82f6, #1d4ed8);
                color: #ffffff;
                border: none;
                box-shadow: 
                    0 8px 25px rgba(59, 130, 246, 0.3),
                    0 4px 12px rgba(59, 130, 246, 0.2);
                transform: translateX(4px);
            }

            .nav-btn:hover:not(.active) {
                background: rgba(59, 130, 246, 0.1);
                color: #3b82f6;
                transform: translateX(2px);
            }

            .dark .nav-btn:hover:not(.active) {
                background: rgba(59, 130, 246, 0.2);
                color: #60a5fa;
            }

            .nav-btn i {
                width: 1.25rem;
                text-align: center;
                margin-right: 0.75rem;
            }

            /* Mobile menu container enhancements */
            #mobile-menu {
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(20px);
                border-right: 1px solid rgba(0, 0, 0, 0.1);
            }

            .dark #mobile-menu {
                background: rgba(31, 41, 55, 0.95);
                border-right: 1px solid rgba(255, 255, 255, 0.1);
            }

            /* Mobile menu header */
            #mobile-menu .p-4 {
                border-bottom: 1px solid rgba(0, 0, 0, 0.1);
                margin-bottom: 1rem;
            }

            .dark #mobile-menu .p-4 {
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }

            /* Mobile AI Insights Optimization */
            #insights-section .bg-gradient-to-r {
                padding: 1rem !important;
                margin-bottom: 1rem !important;
            }

            #insights-section .grid {
                gap: 0.75rem !important;
            }

            #insights-section .p-6 {
                padding: 1rem !important;
            }

            #insights-section .rounded-xl {
                border-radius: 0.5rem !important;
            }

            #insights-section .border {
                border: none !important;
            }

            /* Mobile Transaction Filters */
            .filter-container {
                padding: 0.75rem !important;
                margin-bottom: 0.75rem !important;
            }

            .filter-container .grid {
                grid-template-columns: 1fr !important;
                gap: 0.75rem !important;
            }

            /* Mobile Form Improvements */
            .transaction-item {
                padding: 0.75rem !important;
            }

            .transaction-content {
                padding: 0.75rem !important;
            }

            /* Mobile Category Grid */
            #category-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 0.5rem !important;
                padding: 0.75rem !important;
            }

            /* Mobile Summary Cards */
            #summary-cards {
                gap: 1rem !important;
            }

            /* Mobile Welcome Section */
            #welcome-section {
                padding: 2rem 0 !important;
            }

            #welcome-section .grid {
                grid-template-columns: 1fr !important;
                gap: 1rem !important;
            }

            /* Mobile Modal Improvements */
            .layout-modal-content,
            #add-goal-modal > div,
            #add-budget-modal > div,
            #reset-modal > div {
                margin: 1rem !important;
                padding: 1.5rem !important;
            }
        }