/* Custom Style Sheet for SmartExpenses */

:root {
    /* Sunset Amber deep warm background palette */
    --bg-primary:      hsl(20, 25%, 6%);
    --bg-secondary:    hsl(20, 20%, 9%);
    --bg-tertiary:     hsl(20, 15%, 13%);

    /* Warm glass surfaces */
    --card-bg:         hsla(20, 20%, 15%, 0.65);
    --card-bg-solid:   hsl(20, 18%, 12%);
    --card-bg-light:   hsla(20, 40%, 100%, 0.025);
    --card-bg-hover:   hsla(20, 40%, 100%, 0.05);

    /* Borders */
    --border-color:       hsla(20, 30%, 100%, 0.07);
    --border-color-hover: hsla(20, 30%, 100%, 0.14);
    --border-color-focus: hsla(28, 95%, 55%, 0.5);

    /* Text */
    --text-primary:   hsl(28, 30%, 96%);
    --text-secondary: hsl(28, 12%, 65%);
    --text-muted:     hsl(28, 10%, 45%);

    /* Semantic colors */
    --income-color:     hsl(150, 75%, 45%);
    --income-color-bg:  hsla(150, 75%, 45%, 0.1);
    --income-glow:      hsla(150, 75%, 45%, 0.25);
    --expense-color:    hsl(355, 80%, 55%);
    --expense-color-bg: hsla(355, 80%, 55%, 0.1);
    --expense-glow:     hsla(355, 80%, 55%, 0.25);

    /* Brand accent — Sunset Orange / Amber */
    --accent-color:     hsl(28, 95%, 55%);
    --accent-color-bg:  hsla(28, 95%, 55%, 0.1);
    --accent-hover:     hsl(28, 95%, 48%);
    --accent-glow:      hsla(28, 95%, 55%, 0.25);
    --accent-2:         hsl(42, 95%, 50%);

    /* Gradients */
    --gradient-brand:   linear-gradient(135deg, hsl(28, 95%, 55%), hsl(42, 95%, 50%));
    --gradient-income:  linear-gradient(135deg, hsl(150, 75%, 45%), hsl(165, 75%, 45%));
    --gradient-expense: linear-gradient(135deg, hsl(355, 80%, 55%), hsl(15, 90%, 58%));
    --gradient-card:    linear-gradient(145deg, hsla(20, 20%, 13%, 0.9), hsla(20, 15%, 8%, 0.9));

    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
    --shadow-md: 0 8px 28px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.2);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.3);
    --shadow-glow-accent: 0 0 30px hsla(258, 90%, 70%, 0.2);

    /* Border radius scale */
    --radius-xs:   4px;
    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   20px;
    --radius-xl:   28px;
    --radius-full: 9999px;

    /* Compatibility aliases */
    --border-radius-sm:   var(--radius-sm);
    --border-radius-md:   var(--radius-md);
    --border-radius-lg:   var(--radius-lg);
    --border-radius-full: var(--radius-full);

    --transition-fast:   0.15s cubic-bezier(0.0, 0.0, 0.2, 1);
    --transition-normal: 0.28s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode Theme Overrides */
[data-theme="light"] {
    --bg-primary:    hsl(220, 25%, 97%);
    --bg-secondary:  hsl(220, 20%, 93%);
    --card-bg:        hsla(0, 0%, 100%, 0.85);
    --card-bg-solid:  #ffffff;
    --card-bg-light:  hsla(0, 0%, 0%, 0.025);
    --card-bg-hover:  hsla(0, 0%, 0%, 0.04);
    --border-color:       hsla(220, 30%, 15%, 0.07);
    --border-color-hover: hsla(220, 30%, 15%, 0.15);
    --text-primary:   hsl(222, 47%, 10%);
    --text-secondary: hsl(220, 15%, 42%);
    --text-muted:     hsl(220, 12%, 60%);
    --income-color:     hsl(161, 65%, 35%);
    --income-color-bg:  hsla(161, 65%, 35%, 0.08);
    --income-glow:      hsla(161, 65%, 35%, 0.15);
    --expense-color:    hsl(348, 80%, 52%);
    --expense-color-bg: hsla(348, 80%, 52%, 0.08);
    --expense-glow:     hsla(348, 80%, 52%, 0.15);
    --accent-color:    hsl(258, 80%, 58%);
    --accent-color-bg: hsla(258, 80%, 58%, 0.08);
    --accent-hover:    hsl(258, 80%, 48%);
    --accent-glow:     hsla(258, 80%, 58%, 0.2);
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 28px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-glow-accent: 0 0 20px hsla(258, 80%, 58%, 0.12);
}

/* Base Styles & Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 10%, hsla(258,90%,70%,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, hsla(200,100%,60%,0.05) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

input, select, button, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 100vh;
    padding-bottom: 80px; /* Space for mobile nav bar */
}

@media (min-width: 1024px) {
    .app-container {
        padding-bottom: 1.5rem;
    }
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-sm), inset 0 1px 0 hsla(255,100%,100%,0.06);
    position: sticky;
    top: 1.25rem;
    z-index: 40;
    transition: box-shadow var(--transition-normal);
}

.app-header:hover {
    box-shadow: var(--shadow-md), inset 0 1px 0 hsla(255,100%,100%,0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px var(--accent-glow);
    flex-shrink: 0;
    transition: transform var(--transition-spring), box-shadow var(--transition-fast);
}

.logo-icon:hover {
    transform: rotate(-8deg) scale(1.1);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.logo-icon-hidden {
    width: 38px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.brand h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-date {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--card-bg-light);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .current-date {
        display: none !important;
    }
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-full);
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    color: var(--text-primary);
    background: var(--border-color);
    border-color: var(--border-color-hover);
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

/* SPA App Workspace Layout */
.app-workspace {
    display: block;
    width: 100%;
}

/* Sidebar Toggle button in header (always visible) */
.btn-sidebar-toggle {
    display: flex;
    margin-right: 0.5rem;
}

/* Sidebar backdrop (always acts as overlay cover) */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: hsla(228, 40%, 4%, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Navigation Drawer */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    background: var(--card-bg-solid);
    background-image: linear-gradient(
        160deg,
        hsla(258, 50%, 20%, 0.25) 0%,
        transparent 55%
    );
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    z-index: 95;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-normal), visibility 0s linear var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overflow-x: hidden;
}

.app-sidebar.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--transition-normal), visibility 0s linear 0s;
}

/* Sidebar Header (Close + Brand) inside drawer */
.sidebar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* User Profile card inside sidebar */
.sidebar-profile-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.profile-email {
    font-size: 0.725rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Navigation items wrapper */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Section titles inside navigation */
.nav-section-title {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: 0.75rem;
}

.nav-section-title:first-of-type {
    margin-top: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
    position: relative;
}

.nav-item svg {
    color: var(--text-muted);
    transition: color var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--card-bg-hover);
    color: var(--text-primary);
}

.nav-item:hover svg {
    color: var(--text-primary);
    transform: translateX(2px);
}

.nav-item.active {
    background: var(--accent-color-bg);
    color: var(--accent-color);
    font-weight: 600;
}

.nav-item.active svg {
    color: var(--accent-color);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Hide mobile bottom navigation bar */
.mobile-nav {
    display: none !important;
}

/* Adjust main layout margins when bottom nav is gone */
.app-container {
    padding-bottom: 1.5rem !important;
}

/* Dynamic View Swapping */
.view-viewport {
    min-height: 500px;
}

.app-view {
    display: none;
    animation: slideUp 0.28s cubic-bezier(0.0,0.0,0.2,1);
}

.app-view.active {
    display: block;
}

/* Viewport Sub-layouts */
.app-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .app-main {
        grid-template-columns: 440px 1fr;
    }
}

.column-left, .column-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Card Style */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm), inset 0 1px 0 hsla(255,100%,100%,0.05);
    padding: 1.5rem;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    transition: border-color var(--transition-fast), box-shadow var(--transition-normal), transform var(--transition-fast);
}

.card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md), inset 0 1px 0 hsla(255,100%,100%,0.08);
    transform: translateY(-1px);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.title-icon {
    color: var(--accent-color);
    flex-shrink: 0;
}

.card h3, .app-view h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.app-view h2 {
    font-size: 1.35rem;
}

.btn-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: color var(--transition-fast);
}

.btn-text:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Balance Overview Card (Electric Blue Card) */
.overview-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: linear-gradient(135deg, hsl(210, 100%, 42%), hsl(195, 100%, 32%));
    border: 1px solid hsl(195, 100%, 70%);
    box-shadow: 0 10px 30px -10px hsla(210, 100%, 42%, 0.4);
    position: relative;
    overflow: hidden;
}

.overview-section::after {
    content: '';
    position: absolute;
    top: 0; left: -50%; width: 200%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(30deg);
    pointer-events: none;
}

.overview-section .card-label {
    color: hsl(195, 100%, 92%) !important;
}

.overview-section .balance-amount {
    color: #ffffff !important;
}

.overview-section .stat-label {
    color: hsl(195, 100%, 90%) !important;
}

.overview-section .stat-divider {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Budget Card (Electric Blue Card) */
.budget-section {
    background: linear-gradient(135deg, hsl(210, 100%, 42%), hsl(195, 100%, 32%)) !important;
    border: 1px solid hsl(195, 100%, 70%) !important;
    box-shadow: 0 10px 30px -10px hsla(210, 100%, 42%, 0.4) !important;
    position: relative;
    overflow: hidden;
}

.budget-section::after {
    content: '';
    position: absolute;
    top: 0; left: -50%; width: 200%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(30deg);
    pointer-events: none;
}

.budget-section h3, 
.budget-section #budget-progress-text, 
.budget-section .btn-text,
.budget-section .budget-status-desc {
    color: #ffffff !important;
}

.budget-section .title-icon {
    color: #ffffff !important;
}

.budget-section .btn-text {
    opacity: 0.9;
}

.budget-section .btn-text:hover {
    color: #ffffff !important;
    opacity: 1;
}

.budget-section .progress-bar-container {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.budget-section .progress-bar {
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7) !important;
}

.budget-section .budget-badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.balance-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.balance-amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
}

.overview-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.stat-item.income .stat-icon {
    background: var(--income-color-bg);
    color: var(--income-color);
    box-shadow: 0 0 10px var(--income-glow);
}

.stat-item.expense .stat-icon {
    background: var(--expense-color-bg);
    color: var(--expense-color);
    box-shadow: 0 0 10px var(--expense-glow);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-amount {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.stat-item.income .stat-amount {
    color: var(--income-color);
}

.stat-item.expense .stat-amount {
    color: var(--expense-color);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
    margin: 0 1rem;
}

/* Budget Card styling */
.budget-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.budget-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.budget-badge {
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    background: var(--accent-color-bg);
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.8rem;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--card-bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    width: 0%;
    transition: width var(--transition-normal), background var(--transition-fast);
    box-shadow: 0 0 8px var(--accent-glow);
}

.progress-bar.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 8px hsla(45,95%,60%,0.3);
}

.progress-bar.danger {
    background: var(--gradient-expense);
    box-shadow: 0 0 8px var(--expense-glow);
}

.budget-status-desc {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Donut Chart styling */
.chart-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 480px) {
    .chart-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}

.chart-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.chart-center-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.chart-center-val {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

#donut-chart {
    transform: rotate(-90deg);
}

.donut-segment {
    transition: stroke-dasharray var(--transition-normal), stroke var(--transition-fast);
    stroke-dasharray: 0 999;
    stroke-dashoffset: 0;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-color-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--border-radius-full);
}

.legend-val {
    font-weight: 600;
    color: var(--text-primary);
}

.no-data-msg {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
    padding: 1.5rem 0;
}

/* Transactions list Section */
.transactions-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.6rem;
    border-radius: var(--border-radius-full);
}

.filters-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .filters-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.search-box {
    position: relative;
    flex-grow: 1;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 1rem 0.6rem 2.25rem;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--accent-color);
    background: var(--card-bg-solid);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.tabs-filter {
    display: flex;
    background: var(--card-bg-light);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    gap: 0.25rem;
}

.tab-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.transactions-list-container {
    max-height: 480px;
    overflow-y: auto;
    margin-right: -0.5rem;
    padding-right: 0.5rem;
}

/* Custom Scrollbar */
.transactions-list-container::-webkit-scrollbar {
    width: 6px;
}
.transactions-list-container::-webkit-scrollbar-track {
    background: transparent;
}
.transactions-list-container::-webkit-scrollbar-thumb {
    background: var(--border-color-hover);
    border-radius: var(--border-radius-full);
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-secondary);
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.empty-state h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.empty-state p {
    font-size: 0.85rem;
    max-width: 280px;
    color: var(--text-muted);
}

/* Transaction List Item */
.trans-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--card-bg-light);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.trans-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.trans-item.income::before {
    background: var(--income-color);
    box-shadow: 2px 0 8px var(--income-glow);
}

.trans-item.expense::before {
    background: var(--expense-color);
    box-shadow: 2px 0 8px var(--expense-glow);
}

.trans-item.transfer::before {
    background: var(--accent-color);
    box-shadow: 2px 0 8px var(--accent-glow);
}

.trans-item:hover {
    border-color: var(--border-color-hover);
    background: var(--card-bg-hover);
    transform: translateX(3px);
    box-shadow: var(--shadow-xs);
}

.trans-info-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trans-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trans-item.income .trans-cat-icon {
    background: var(--income-color-bg);
    color: var(--income-color);
}

.trans-item.expense .trans-cat-icon {
    background: var(--expense-color-bg);
    color: var(--expense-color);
}

.trans-item.transfer .trans-cat-icon {
    background: var(--accent-color-bg);
    color: var(--accent-color);
}

.trans-details {
    display: flex;
    flex-direction: column;
}

.trans-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trans-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.trans-cat-badge {
    background: var(--card-bg-light);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.trans-value-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trans-amount {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.trans-item.income .trans-amount {
    color: var(--income-color);
}

.trans-item.expense .trans-amount {
    color: var(--expense-color);
}

.trans-item.transfer .trans-amount {
    color: var(--accent-color);
}

.btn-delete-trans, .btn-action-delete, .btn-action-edit {
    opacity: 0;
    visibility: hidden;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    padding: 0.25rem;
    border-radius: 4px;
}

.trans-item:hover .btn-delete-trans,
.account-card:hover .btn-action-delete,
.account-card:hover .btn-action-edit,
.category-card:hover .btn-action-delete,
.category-card:hover .btn-action-edit,
.budget-list-item:hover .btn-action-delete,
.budget-list-item:hover .btn-action-edit,
.scheduled-item:hover .btn-action-delete,
.template-item:hover .btn-action-delete,
.goal-item:hover .btn-action-delete,
.debt-item:hover .btn-action-delete {
    opacity: 1;
    visibility: visible;
}

.btn-delete-trans:hover, .btn-action-delete:hover {
    color: var(--expense-color);
    background: var(--expense-color-bg);
}

.btn-action-edit:hover {
    color: var(--accent-color);
    background: var(--accent-color-bg);
}

@media (max-width: 768px) {
    .btn-delete-trans, .btn-action-delete, .btn-action-edit {
        opacity: 1;
        visibility: visible;
    }
}

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px var(--accent-glow), 0 4px 14px rgba(0,0,0,0.3);
    transition: all var(--transition-spring);
    z-index: 38;
}

.fab:hover {
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 12px 36px var(--accent-glow), 0 6px 18px rgba(0,0,0,0.3);
}

/* Native HTML5 Dialog (Modals) */
.modal-dialog {
    border: none;
    background: transparent;
    margin: auto;
    padding: 1rem;
    max-width: 420px;
    width: 100%;
    outline: none;
    z-index: 55;
}

.modal-dialog::backdrop {
    background: rgba(4, 6, 12, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dialog-content {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.0,0.0,0.2,1);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--card-bg-solid);
    z-index: 1;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.dialog-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.form-group {
    padding: 1rem 1.5rem 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Toggle type buttons */
.type-toggle-container {
    display: flex;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: var(--border-radius-sm);
    gap: 0.25rem;
}

.toggle-btn {
    flex: 1;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
    text-align: center;
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.selected.expense {
    background: var(--expense-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.2);
}

.toggle-btn.selected.income {
    background: var(--income-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.amount-input-wrapper input {
    width: 100%;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem 0.75rem 2.25rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.amount-input-wrapper input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

select, input[type="date"], input[type="text"], input[type="email"] {
    width: 100%;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.25rem;
}

select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

select:disabled, input:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.01) !important;
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

select:focus, input[type="date"]:focus, input[type="text"]:focus, input[type="email"]:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.input-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.dialog-actions {
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    position: sticky;
    bottom: 0;
    background: var(--card-bg-solid);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.btn {
    flex: 1;
    padding: 0.7rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.btn-secondary:hover {
    color: var(--text-primary);
    background: var(--border-color);
    border-color: var(--border-color-hover);
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px var(--accent-glow);
    transform: translateY(-1px);
}

/* SECTION 2: CUENTAS VIEW STYLING */
.accounts-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .accounts-grid-layout {
        grid-template-columns: 1fr 380px;
    }
}

.accounts-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .accounts-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* Credit-card style accounts cards */
.account-card {
    position: relative;
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.account-card.expanded {
    height: auto !important;
    overflow: visible !important;
}

.account-card .account-control-panel {
    display: none;
}

.account-card.expanded .account-control-panel {
    display: flex !important;
    flex-direction: column !important;
}

.account-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.25);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.account-card-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.account-card-actions {
    display: flex;
    gap: 0.25rem;
    z-index: 5;
}

.account-card-actions button {
    color: rgba(255,255,255,0.7);
    padding: 0.2rem;
}

.account-card-actions button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.account-card-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 0.5rem;
}

.account-card-balance {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}

/* SECTION 3: CATEGORÍAS VIEW STYLING */
.categories-tabs-container {
    margin-top: 1.5rem;
}

.categories-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.cat-tab-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.cat-tab-btn:hover {
    color: var(--text-primary);
    background: var(--card-bg-light);
}

.cat-tab-btn.active {
    color: var(--accent-color);
    background: var(--accent-color-bg);
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.category-card {
    position: relative;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.65rem 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    transition: all var(--transition-fast);
}

.category-card:hover {
    border-color: var(--border-color-hover);
    background: var(--card-bg-solid);
    transform: translateX(4px);
}

.category-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-card-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.1rem;
}

.category-card-actions button {
    padding: 0.1rem;
}

/* Icon Picker Styling */
.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    max-height: 180px;
    overflow-y: auto;
}

.icon-picker-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0.35rem;
}

.icon-picker-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.icon-picker-item:hover {
    background: var(--card-bg-hover);
    color: var(--text-primary);
}

.icon-picker-item.selected {
    background: var(--accent-color-bg);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* SECTION 4: PRESUPUESTOS VIEW STYLING */
.budgets-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .budgets-layout-grid {
        grid-template-columns: 350px 1fr;
    }
}

.global-budget-visual {
    margin: 1.25rem 0;
}

.global-budget-visual h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.category-budgets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.budget-list-item {
    border: 1px solid var(--border-color);
    background: var(--card-bg-light);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    transition: all var(--transition-fast);
}

.budget-list-item:hover {
    border-color: var(--border-color-hover);
    background: var(--card-bg-solid);
}

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

.budget-cat-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.budget-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--border-radius-full);
}

.budget-cat-name {
    font-size: 0.875rem;
    font-weight: 600;
}

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

/* SECTION 5: AGENDA Y FRECUENTES VIEW STYLING */
.agenda-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .agenda-layout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.scheduled-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scheduled-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--card-bg-light);
    padding: 0.85rem 1rem;
    transition: all var(--transition-fast);
}

.scheduled-item:hover {
    border-color: var(--border-color-hover);
    background: var(--card-bg-solid);
}

.scheduled-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scheduled-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scheduled-concept {
    font-size: 0.875rem;
    font-weight: 600;
}

.scheduled-frequency-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.template-item {
    position: relative;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.template-item:hover {
    border-color: var(--border-color-hover);
    background: var(--card-bg-solid);
    transform: translateY(-2px);
}

.template-label {
    font-size: 0.85rem;
    font-weight: 700;
}

.template-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

/* SECTION 6: METAS Y DEUDAS VIEW STYLING */
.goals-debts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .goals-debts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.goals-list, .debts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-item, .debt-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--card-bg-light);
    padding: 1.25rem;
    transition: all var(--transition-fast);
}

.goal-item:hover, .debt-item:hover {
    border-color: var(--border-color-hover);
    background: var(--card-bg-solid);
}

.goal-header, .debt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.goal-title, .debt-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.goal-subtitle, .debt-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.goal-values, .debt-values {
    text-align: right;
}

.goal-target-val, .debt-amount-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.goal-current-val, .debt-paid-val {
    font-size: 0.775rem;
    color: var(--text-secondary);
}

/* SECTION 7: REPORTES VIEW STYLING */
.reports-filter-card {
    background: var(--card-bg-solid);
}

.reports-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .reports-filter-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .reports-filter-row {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.reports-custom-range {
    display: flex;
    gap: 0.5rem;
}

.reports-custom-range .filter-group {
    flex: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reports-charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .reports-charts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Bar Chart styling */
.trend-chart-container {
    width: 100%;
    margin-top: 1rem;
}

.chart-bar {
    fill: var(--accent-color);
    transition: fill var(--transition-fast), height var(--transition-normal), y var(--transition-normal);
}

.chart-bar:hover {
    fill: var(--accent-hover);
}

.chart-axis-line {
    stroke: var(--border-color);
    stroke-width: 1;
}

.chart-grid-line {
    stroke: var(--border-color);
    stroke-width: 1;
    stroke-dasharray: 4;
    opacity: 0.4;
}

.chart-label-text {
    font-size: 10px;
    fill: var(--text-secondary);
    font-family: var(--font-body);
}

.chart-value-text {
    font-size: 10px;
    font-weight: 700;
    fill: var(--text-primary);
    font-family: var(--font-heading);
}

.legend-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* SECTION 8: OPCIONES VIEW STYLING */
.options-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .options-layout-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Base utilities & divider */
.trans-date-divider {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

/* Keyframe animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

/* Calendar Widgets Styles */
.calendar-day-cell {
    aspect-ratio: 1.15;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 58px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-day-cell:hover {
    border-color: var(--border-color-hover);
    background: var(--card-bg-hover);
}

.calendar-day-cell.other-month {
    opacity: 0.25;
}

.calendar-day-cell.today {
    border-color: var(--accent-color);
    background: var(--accent-color-bg);
}

.calendar-day-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.calendar-day-cell.today .calendar-day-number {
    color: var(--accent-color);
}

.calendar-day-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 0.15rem;
    max-height: 25px;
    overflow: hidden;
}

.calendar-day-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
