/* =================================================================
   1. THEME DEFINITIONS (Light is default, Dark is via data-theme="dark")
   ================================================================= */
:root {
    /* Light Theme (Default) - White, Blue and Green Gradient */
    --color-primary: #0d9488; /* Teal - blends blue and green */
    --color-primary-dark: #115e59;
    --color-primary-light: #2dd4bf;
    --color-secondary: #0891b2; /* Cyan - more blue */
    --color-background: #f8faf9; /* Slightly warmer background */
    --color-surface: #ffffff;
    --color-text: #1f2937;
    --color-text-secondary: #6b7280;
    --color-border: #d1d5db; /* Slightly warmer border */
    --color-error: #ef4444;
    --color-error-bg: #fee2e2;
    --color-warning: #14b8a6; /* Teal */
    --color-success: #22c55e; /* Green */
    --shadow-subtle: 0 1px 3px 0 rgba(13, 148, 136, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(13, 148, 136, 0.15), 0 2px 4px -2px rgba(13, 148, 136, 0.1);
}

[data-theme="dark"] {
    /* Dark Theme with Natural Green */
    --color-primary: #4A6B5A; /* Lighter Green for dark theme */
    --color-primary-dark: #233E2F;
    --color-primary-light: #6B8B7A;
    --color-secondary: #34d399; /* Light Green */
    --color-background: #0f1419; /* Darker, more natural background */
    --color-surface: #1a2332; /* Warmer dark surface */
    --color-text: #f8fafc; /* White text */
    --color-text-secondary: #94a3b8; /* Slate 400 */
    --color-border: #2d3748; /* Warmer border */
    --color-error: #f87171; /* Red 400 */
    --color-error-bg: #450a0a;
    --color-warning: #fbbf24; /* Amber 400 */
    --color-success: #34d399;
    --shadow-subtle: 0 1px 3px 0 rgba(35, 62, 47, 0.3);
    --shadow-medium: 0 4px 6px -1px rgba(35, 62, 47, 0.4), 0 2px 4px -2px rgba(35, 62, 47, 0.3);
}

/* =================================================================
   2. BASE STYLES & TRANSITION
   ================================================================= */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
    min-height: 100vh;
    /* Smooth theme transition */
    transition: background-color 0.3s, color 0.3s; 
}

header, main, footer, section {
    padding: 1rem;
}

nav {
    padding: 10;
}

/* --- Global Components --- */

.card {
    background: var(--color-surface);
    border-radius: 1rem; 
    box-shadow: var(--shadow-subtle);
    margin-bottom: 1.5rem; 
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease, background-color 0.3s, border-color 0.3s, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    opacity: 0.7;
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-surface);
    box-shadow: 0 2px 4px rgba(35, 62, 47, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(35, 62, 47, 0.3);
}

.btn-secondary {
    background: var(--color-border), var(--color-primary-light);
    color: var(--color-text);
    border: 1px solid var(--color-primary-light);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: var(--color-primary-light), var(--color-primary);
    color: var(--color-surface);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(35, 62, 47, 0.2);
}

.btn-danger {
    background-color: var(--color-error);
    color: white;
}
.btn-danger:hover, .btn-danger:focus {
    background-color: #dc2626; /* Consistent red hover */
}
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Input & Form Styles */
input[type="text"], input[type="number"], input[type="date"], select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s;
    background-color: var(--color-background); /* Inputs blend into BG but are different from card */
    color: var(--color-text);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 30%, transparent); /* Dynamic focus ring */
}

button:focus, a:focus, .tab-btn:focus, .record-row:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 0.5rem;
}
.record-row:focus {
    background-color: color-mix(in srgb, var(--color-primary) 5%, transparent); 
}

/* Skip Link */
#skip-to-content {
    position: absolute;
    left: -999px;
    padding: 0.5rem 1rem;
    background-color: var(--color-primary-dark);
    color: white;
    z-index: 100;
}

/* =================================================================
   MODERN TOP NAVBAR
   ================================================================= */

/* Navbar */
.navbar {
    width: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header {
        width: 95%;
        margin: 0 auto;
}

.navbar-container {
    width: 95%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 4rem;
    transition: all 0.3s ease;
}

/* Mobile navbar adjustments */
@media (max-width: 767px) {
    .navbar-container {
        padding: 0 0.75rem;
        height: 3.5rem;
    }
    
    .navbar {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.logo-text {
    display: none;
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    margin: 0;
}
.nav-item2 {
    margin-left: 50px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.nav-link.active {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
    font-weight: 600;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-text {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-text);
    margin: 5px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--color-primary);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--color-primary);
}

/* Records Table/Cards */
.record-card {
    border-left: 6px solid var(--color-primary);
    box-shadow: var(--shadow-subtle);
}
.record-card-title {
    color: var(--color-primary);
}

.record-card-detail {
    color: var(--color-text-secondary); 
}

/* Table Layout (Desktop) */
.records-table th {
    background-color: color-mix(in srgb, var(--color-surface) 90%, var(--color-background));
}
.records-table th:hover {
    background-color: color-mix(in srgb, var(--color-surface) 70%, var(--color-background));
}
.record-row:hover {
    background-color: color-mix(in srgb, var(--color-background) 50%, transparent); 
}

/* Highlighting */
mark {
    background-color: var(--color-warning);
    color: var(--color-text);
}

/* Status/Live Regions */
.status-assertive {
    background-color: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}
.status-polite {
    background-color: color-mix(in srgb, var(--color-success) 10%, transparent);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

/* Dashboard Styles */
.stat-card {
    border-left: 4px solid var(--color-primary);
}
.stat-card p {
    color: var(--color-text-secondary);
}

.stat-value {
    color: var(--color-text);
}

/* --- CSS Bar Chart Implementation --- */
.chart-dates div {
     color: var(--color-text-secondary);
}

/* --- Theme Toggle --- */
.theme-toggle-container {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    display: flex;
    align-items: center;
}
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: var(--color-text);
}
#theme-toggle:hover {
    background-color: var(--color-border);
}
#theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- Responsive Design: Mobile First --- */

/* Mobile Styles (default, up to 767px) */
.mobile-menu-toggle {
    display: block;
}

.navbar-menu {
    position: fixed;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-medium);
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-list {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    list-style: none;
    margin: 0;
}

.nav-item {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-menu.open .nav-item {
    opacity: 1;
    transform: translateY(0);
}

.navbar-menu.open .nav-item:nth-child(1) { transition-delay: 0.1s; }
.navbar-menu.open .nav-item:nth-child(2) { transition-delay: 0.15s; }
.navbar-menu.open .nav-item:nth-child(3) { transition-delay: 0.2s; }
.navbar-menu.open .nav-item:nth-child(4) { transition-delay: 0.25s; }
.navbar-menu.open .nav-item:nth-child(5) { transition-delay: 0.3s; }

.nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
    transform: translateX(8px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.nav-link:active {
    transform: translateX(4px) scale(0.98);
}

.nav-text {
    display: inline;
    margin-left: 0.75rem;
    font-weight: 500;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.records-section {
    display: flex;
    flex-direction: column;
}

.records-table {
    display: none; /* Hide table on mobile */
}

.records-container {
    display: block; /* Show cards on mobile */
}

.chart-container {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 200px;
    padding: 1rem;
    background: var(--color-background);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.chart-bar {
    flex: 1;
    background: var(--color-primary);
    margin: 0 2px;
    border-radius: 2px 2px 0 0;
    position: relative;
    transition: height 0.3s ease;
    min-height: 4px;
}

.chart-label {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.chart-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-medium);
    max-width: 400px;
    width: 90%;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* Error Messages */
.error-message {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.invalid-input {
    border-color: var(--color-error) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-error) 30%, transparent) !important;
}

/* Animation for new records */
.new-record {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Tablet Breakpoint (768px) --- */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .navbar-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border-bottom: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0;
    }
    
    .nav-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .nav-link {
        width: auto;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .nav-text {
        display: inline;
        margin-left: 0.5rem;
    }
    
    .logo-text {
        display: inline;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .records-section {
        flex-direction: row;
        gap: 2rem;
    }
    
    .records-table-wrapper {
        flex: 2;
    }
    
    #search-filter-sidebar {
        flex: 1;
        margin-top: 0;
    }
    
    .chart-container {
        height: 250px;
    }
}


/* --- Desktop Breakpoint (1024px) --- */
@media (min-width: 1024px) {
    .theme-toggle-container {
        right: calc(50% - 600px + 1rem); /* Align with main content edge */
    }
    
    /* Ensure navbar is visible on desktop */
    .navbar-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-item {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .records-table {
        display: table; /* Show table on desktop */
        width: 100%;
        border-collapse: collapse;
    }
    
    .records-container {
        display: none; /* Hide cards on desktop */
    }
    
    .records-table th,
    .records-table td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid var(--color-border);
    }
    
    .records-table th {
        cursor: pointer;
        user-select: none;
        position: relative;
    }
    
    .sort-indicator {
        margin-left: 0.5rem;
        font-size: 0.8rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .modal-content {
        max-width: 500px;
    }
}

/* --- Large Desktop Breakpoint (1200px) --- */
@media (min-width: 1200px) {
    header, main, footer {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    nav {
        max-width: none;
        margin: 0;
    }
    
    .theme-toggle-container {
        right: 1rem;
    }
}

/* =================================================================
   USER FEEDBACK MESSAGES
   ================================================================= */
.user-feedback {
    background-color: var(--color-success);
    color: white;
    border: 1px solid var(--color-success);
    animation: slideDown 0.3s ease-out;
}

.user-feedback.error {
    background-color: var(--color-error);
    border-color: var(--color-error);
}

.user-feedback.warning {
    background-color: var(--color-warning);
    border-color: var(--color-warning);
    color: var(--color-text);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================================
   BUDGET DISPLAY STYLES
   ================================================================= */
#dashboard-budget-cap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
}

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

.budget-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.budget-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.budget-progress-container {
    margin-bottom: 1rem;
}

.budget-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.budget-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-success), var(--color-secondary));
    border-radius: 4px;
    transition: width 0.5s ease, background 0.3s ease;
    position: relative;
}

.budget-progress-fill.over-budget {
    background: linear-gradient(90deg, var(--color-error), #ff6b6b);
    animation: pulse 2s infinite;
}

.budget-progress-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-align: right;
    font-weight: 500;
}

.budget-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    
}

.budget-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.budget-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.budget-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.budget-value.spent {
    color: var(--color-text);
}

.budget-value.remaining {
    color: var(--color-success);
}

.budget-value.over-budget {
    color: var(--color-error);
}

/* Budget states */
.budget-normal {
    border-left: 4px solid var(--color-success);
}

.budget-over {
    border-left: 4px solid var(--color-error);
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(239, 68, 68, 0.05) 100%);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* File Upload Styles */
.file-upload-area {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent);
    transition: left 0.5s ease;
}

.file-upload-area:hover::before {
    left: 100%;
}

.file-upload-area:hover {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 5%, transparent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.file-upload-area.dragover {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    transform: scale(1.02);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

.btn-outline:active {
    transform: translateY(0);
}

/* File upload responsive design */
@media (max-width: 768px) {
    .file-upload-area {
        padding: 0.75rem;
    }
    
    .file-upload-area p {
        font-size: 0.875rem;
    }
    
    .btn-outline {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Responsive design for budget */
@media (max-width: 768px) {
    .budget-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .budget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .budget-amount {
        font-size: 1.25rem;
    }
}
