:root {
    --fox-orange: #f97316;
    --fox-deep-blue: #0f172a;
    --fox-slate-800: #1e293b;
    --fox-slate-900: #0f172a;
    --fox-glass: rgba(30, 41, 59, 0.7);
    --fox-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--fox-deep-blue);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Background */
.glass-bg {
    background: var(--fox-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--fox-border);
    border-radius: 2.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--fox-orange);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
    filter: brightness(1.1);
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.text-orange { color: var(--fox-orange); }

/* Layout Utilities */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.75rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Premium Glowing Card */
.glow-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.1) 100%);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 2rem;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.15), inset 0 0 20px rgba(249, 115, 22, 0.05);
}

/* Budget Progress Bars */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.progress-fill.green { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-fill.orange { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress-fill.red { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Pulse animation for exceeded budget */
@keyframes pulseGlowRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 12px 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.pulse-glow-red {
    animation: pulseGlowRed 2s infinite;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

/* Chart Tabs */
.chart-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.chart-tab-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.chart-tab-btn.active {
    color: #f97316;
    background: rgba(249, 115, 22, 0.08);
}

.chart-tab-content {
    display: none;
}

.chart-tab-content.active {
    display: block;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.25rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.75rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 0.25rem;
    scrollbar-width: thin;
}

/* Search Box styling */
.search-box-container {
    position: relative;
    margin-bottom: 1.25rem;
}

.search-input {
    width: 100%;
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.85rem 1.1rem;
    padding-left: 2.5rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(30, 41, 59, 0.6);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    pointer-events: none;
}
