/* ==========================================================================
   VoiceFinance Mobile App - Clean Light Theme System & UX
   ========================================================================== */

:root {
    --bg-app: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    
    --accent-emerald: #10b981;
    --accent-emerald-light: #ecfdf5;
    
    --accent-rose: #f43f5e;
    --accent-rose-light: #fff1f2;
    
    --accent-cyan: #0284c7;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --border-color: #e2e8f0;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-card: 0 4px 18px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-float: 0 12px 30px rgba(15, 23, 42, 0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* App Container (Mobile viewport centered on desktop, 100% on mobile) */
.mobile-app-layout {
    width: 100%;
    max-width: 520px;
    background: var(--bg-surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
}

/* Top Navigation Header */
.app-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.brand-info h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.badge-status {
    font-size: 0.7rem;
    color: var(--accent-emerald);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Tab Navigation Header */
.app-tab-nav {
    display: flex;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0 0.5rem;
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.nav-tab.active {
    color: var(--primary);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* App Viewport Screens */
.app-viewport {
    flex: 1;
    padding: 1.25rem 1.25rem 120px 1.25rem;
    overflow-y: auto;
}

.tab-screen {
    display: none;
    animation: fade-in 0.3s ease;
}

.tab-screen.active {
    display: block;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Period Filter Bar */
.period-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    background: var(--bg-subtle);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-full);
}

.period-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.period-pills {
    display: flex;
    gap: 0.25rem;
}

.period-pill {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.period-pill.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hero Balance Card (App Main Card) */
.hero-balance-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-float);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-balance-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.25);
    filter: blur(40px);
}

.hero-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-currency-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: #cbd5e1;
}

.hero-amount {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-stats-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

.hero-substat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-substat i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.hero-substat.income i {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
}

.hero-substat.expense i {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
}

.substat-title {
    font-size: 0.72rem;
    color: #94a3b8;
    display: block;
}

.hero-substat strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.75rem;
}

/* Titles & Sections */
.section-title {
    margin: 1.25rem 0 0.85rem 0;
}

.section-title.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Carousel Chevron Controls */
.carousel-controls {
    display: flex;
    gap: 0.35rem;
}

.carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Charts Swipeable Scroll Wrapper */
.charts-swipe-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.charts-swipe-wrapper::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.charts-swipe-wrapper {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.chart-card-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-card);
}

.chart-card-header h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container {
    position: relative;
    height: 220px;
    width: 100%;
}

/* Carousel Indicator Dots */
.carousel-dots-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.carousel-dots-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots-bar .dot.active {
    width: 22px;
    border-radius: var(--radius-full);
    background: var(--primary);
}

/* Transaction Item Component */
.recent-tx-list, .tx-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tx-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.tx-item:hover {
    border-color: #cbd5e1;
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tx-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tx-icon-box.ingreso {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
}

.tx-icon-box.gasto {
    background: var(--accent-rose-light);
    color: var(--accent-rose);
}

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

.tx-desc {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

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

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

.tx-amount {
    font-size: 0.95rem;
    font-weight: 800;
}

.tx-amount.ingreso { color: var(--accent-emerald); }
.tx-amount.gasto { color: var(--accent-rose); }

.btn-delete-item {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-delete-item:hover {
    color: var(--accent-rose);
    background: var(--accent-rose-light);
}

/* History Screen Controls */
.history-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.search-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.search-input-box input {
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    outline: none;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.select-chip {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-accent {
    background: var(--accent-emerald);
    color: white;
}

.btn-danger {
    background: var(--accent-rose);
    color: white;
}

.btn-danger-outline {
    background: var(--accent-rose-light);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
}

.btn-block { width: 100%; }

/* Settings Screen Cards */
.settings-group {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
}

.settings-group h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.provider-radio-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.provider-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--bg-subtle);
    transition: var(--transition);
}

.provider-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.provider-info strong {
    font-size: 0.85rem;
    display: block;
}

.provider-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.settings-field {
    margin-bottom: 1rem;
}

.settings-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}

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

.key-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--primary);
}

.key-input-wrapper input {
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    outline: none;
}

.export-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* FIXED BOTTOM FLOATING VOICE ACTION BAR */
.fixed-bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    z-index: 90;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

.bottom-bar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-side-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-side-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Central Floating Microphone */
.central-mic-container {
    position: relative;
    margin-top: -24px;
}

.central-mic-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border: 4px solid var(--bg-surface);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    position: relative;
}

.central-mic-btn:hover {
    transform: scale(1.06);
}

.central-mic-btn.recording {
    background: linear-gradient(135deg, var(--accent-rose), #fb7185);
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.4);
    animation: mic-pulse 1.2s infinite alternate;
}

@keyframes mic-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

/* Drawers for Text & Chips */
.text-drawer, .chips-drawer {
    display: none;
    margin-bottom: 0.75rem;
    animation: drawer-slide 0.25s ease;
}

.text-drawer.active, .chips-drawer.active {
    display: block;
}

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

.bottom-text-form {
    display: flex;
    gap: 0.5rem;
}

.bottom-text-form input {
    flex: 1;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    outline: none;
}

.btn-send-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chips-drawer {
    display: none;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.chips-drawer.active {
    display: flex;
}

.chip-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
    color: var(--text-muted);
}

.chip-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Live Speech Overlay */
.live-speech-overlay {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    background: #0f172a;
    color: white;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    z-index: 85;
    display: none;
    animation: fade-in 0.25s ease;
}

.live-speech-overlay.active {
    display: block;
}

.overlay-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
}

.overlay-content i {
    color: var(--accent-emerald);
}

/* Modals & Alerts */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    padding: 1.25rem;
    box-shadow: var(--shadow-float);
}

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

.modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dim);
    cursor: pointer;
}

.modal-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

/* Empty State Card */
.empty-state-card {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
    display: none;
}

.empty-state-card.visible {
    display: block;
}

.empty-illustration {
    font-size: 2.2rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.empty-state-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.empty-state-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 90%;
    max-width: 440px;
    pointer-events: none;
}

.toast {
    background: #0f172a;
    color: white;
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    animation: toast-slide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success { border-left: 4px solid var(--accent-emerald); }
.toast.info { border-left: 4px solid var(--primary); }
.toast.error { border-left: 4px solid var(--accent-rose); }

@keyframes toast-slide {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Daily Breakdown Table Styling */
.daily-table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.daily-summary-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.daily-summary-table th {
    padding: 0.6rem 0.75rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
}

.daily-summary-table td {
    padding: 0.75rem;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.daily-summary-table tbody tr:last-child td {
    border-bottom: none;
}

.daily-summary-table tbody tr:hover {
    background: var(--bg-subtle);
}

.text-income-positive {
    color: var(--accent-emerald);
    font-weight: 700;
}

.text-expense-negative {
    color: var(--accent-rose);
    font-weight: 700;
}

.net-badge {
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.78rem;
    display: inline-block;
}

.net-badge.positive {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
}

.net-badge.negative {
    background: var(--accent-rose-light);
    color: var(--accent-rose);
}

.net-badge.neutral {
    background: var(--bg-subtle);
    color: var(--text-muted);
}

/* Supabase Google Auth & User Profile */
.btn-google-auth {
    background: #ffffff;
    color: #334155;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-weight: 700;
}

.btn-google-auth i {
    color: #ea4335;
    font-size: 1.1rem;
}

.btn-google-auth:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 0.6rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.auth-btn-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.avatar-lg {
    font-size: 2.2rem;
    color: var(--primary);
}


