/* ---------------------------------------------------------
   BankRateBazaar - Premium Styling System
   --------------------------------------------------------- */

/* Google Fonts & Root Design Tokens */
:root {
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Theme transitions */
    --transition-theme: background-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                        border-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                        box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                        color 0.3s ease;
    
    /* Accent Colors */
    --indigo: #6366f1;
    --indigo-hover: #4f46e5;
    --indigo-glow: rgba(99, 102, 241, 0.15);
    
    --emerald: #10b981;
    --emerald-hover: #059669;
    --emerald-glow: rgba(16, 185, 129, 0.15);
    
    --teal: #14b8a6;
    --teal-hover: #0d9488;
    
    --amber: #f59e0b;
    --rose: #f43f5e;
    
    /* Shared border-radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Dark Mode Variables (Default) */
[data-theme="dark"] {
    --bg-main: #090d16;
    --bg-surface: #111827;
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-bg-hover: rgba(31, 41, 55, 0.8);
    --card-border: rgba(255, 255, 255, 0.06);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);
    
    --divider-color: rgba(255, 255, 255, 0.08);
    --input-bg: #1f2937;
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus-border: #6366f1;
    
    --glow-opacity: 0.15;
}

/* Light Mode Variables */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-bg-hover: rgba(241, 245, 249, 0.9);
    --card-border: rgba(0, 0, 0, 0.06);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.04);
    
    --divider-color: rgba(0, 0, 0, 0.08);
    --input-bg: #f1f5f9;
    --input-border: rgba(0, 0, 0, 0.1);
    --input-focus-border: #2563eb;
    
    --indigo: #2563eb; /* Use royal blue for primary light mode accent */
    --indigo-hover: #1d4ed8;
    --indigo-glow: rgba(37, 99, 235, 0.1);
    
    --glow-opacity: 0.05;
}

/* Reset & Base Styles */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    transition: var(--transition-theme);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Decorative Background Glows */
.glow-bg {
    position: absolute;
    width: 600px;
    max-width: 100vw;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: var(--glow-opacity);
    transition: opacity 0.4s ease;
    overflow: hidden;
}

.glow-1 {
    background: radial-gradient(circle, var(--indigo) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.glow-2 {
    background: radial-gradient(circle, var(--emerald) 0%, transparent 70%);
    bottom: 20%;
    left: -150px;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: var(--indigo);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--indigo-hover);
}

/* Main Header */
.main-header {
    background-color: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-theme);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo-text span.text-accent {
    background: linear-gradient(135deg, var(--indigo), var(--emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text-small {
    font-weight: 800;
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

/* Nav Tabs Desktop */
.nav-tabs {
    display: flex;
    background-color: var(--input-bg);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--card-border);
    transition: var(--transition-theme);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tab-btn.active {
    background-color: var(--bg-surface);
    color: var(--indigo);
    box-shadow: var(--shadow-sm);
}

.icon {
    width: 18px;
    height: 18px;
}

.tab-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    border-color: var(--indigo);
    color: var(--indigo);
    transform: scale(1.05);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Mobile Navigation Bar */
.mobile-tabs-container {
    display: none;
    position: sticky;
    top: 72px;
    z-index: 99;
    background-color: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 8px 16px;
}

.mobile-tabs {
    display: flex;
    width: 100%;
    background-color: var(--input-bg);
    border-radius: var(--radius-md);
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
}

.mobile-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-tab-btn {
    flex: 1 0 auto;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-tab-btn.active {
    background-color: var(--bg-surface);
    color: var(--indigo);
    box-shadow: var(--shadow-sm);
}

/* Hero Section styling for premium layout & SEO */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 36px auto;
    padding: 0 16px;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--indigo) 70%, var(--emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hero-section {
        margin-bottom: 24px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
}

/* Dashboard Grid Layout */
.main-content {
    flex: 1;
    padding-top: 40px;
    padding-bottom: 60px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Cards & Styling */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-theme);
}

.calc-card {
    padding: 32px;
}

.card-header {
    margin-bottom: 28px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.card-header h2 {
    font-size: 26px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.card-header h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Calculator Grid Inner Split */
.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

/* Inputs Styles */
.inputs-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-label-row label {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.input-label-row input[type="number"] {
    width: 140px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    text-align: right;
    transition: all 0.2s ease;
}

.input-label-row input[type="number"]:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 2px var(--indigo-glow);
}

/* Custom Range Sliders */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--input-bg);
    outline: none;
    touch-action: manipulation;
    transition: background 0.2s ease;
}

.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    border-radius: var(--radius-full);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--indigo);
    border: 3px solid var(--bg-surface);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: var(--shadow-md), 0 0 10px var(--indigo);
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--emerald);
    box-shadow: var(--shadow-md), 0 0 12px var(--emerald);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0 2px;
}

/* Select Box Styles */
.form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 2px var(--indigo-glow);
}

.form-select.full-width {
    width: 100%;
}

.report-interval-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-interval-select:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 2px var(--indigo-glow);
}

.tenure-flex-group {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.tenure-main {
    flex: 1;
}

.tenure-unit-select {
    width: 120px;
}

.tenure-unit-select label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 2px var(--indigo-glow);
}

/* Outputs Panel */
.outputs-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: var(--card-bg-hover);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px dashed var(--divider-color);
    width: 100%;
    min-width: 0;
}

.calculator-column,
.inputs-panel {
    width: 100%;
    min-width: 0;
}

.emi-result-card {
    background: linear-gradient(135deg, var(--indigo), #4f46e5);
    padding: 24px;
    border-radius: var(--radius-md);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-md), 0 8px 20px rgba(99, 102, 241, 0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.emi-result-card.success {
    background: linear-gradient(135deg, var(--emerald), #047857);
    box-shadow: var(--shadow-md), 0 8px 20px rgba(16, 185, 129, 0.2);
}

.emi-result-card.highlight {
    background: linear-gradient(135deg, #4f46e5, var(--teal));
    box-shadow: var(--shadow-md), 0 8px 20px rgba(79, 70, 229, 0.2);
}

.emi-result-card .result-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    opacity: 0.85;
}

.emi-result-card .result-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Donut Chart Visuals */
.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 10px;
}

.svg-chart-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

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

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

.center-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.center-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.chart-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-top: 5px;
    flex-shrink: 0;
}

.legend-color.principal { background-color: var(--emerald); }
.legend-color.interest { background-color: var(--indigo); }
.legend-color.fd-interest { background-color: var(--teal); }

.legend-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.legend-title {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.legend-pct {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Stats Row Cards */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.stat-box {
    background-color: var(--card-bg-hover);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Amortization Table UI */
.amortization-section {
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--indigo);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--indigo);
    color: white;
    box-shadow: 0 4px 12px var(--indigo-glow);
}

.btn-outline.active:not(.rates-subtab):not(.content-subtab):not(.settings-subtab):not(.followups-filter-tab) {
    background-color: var(--indigo);
    color: white;
    box-shadow: 0 4px 12px var(--indigo-glow);
}


.btn-full {
    width: 100%;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.table-wrapper {
    margin-top: 16px;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
}

.table-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    border: none;
    pointer-events: none;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.amortization-table th, 
.amortization-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--divider-color);
}

.amortization-table th {
    background-color: var(--input-bg);
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.amortization-table tbody tr:nth-child(even) {
    background-color: rgba(148, 163, 184, 0.08);
}

.amortization-table tbody tr:hover {
    background-color: var(--card-bg-hover);
}

.amortization-table td {
    color: var(--text-primary);
    font-weight: 500;
}

/* Home Loan Balance Transfer Extra Styles */
.double-panel {
    gap: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--divider-color);
}

.text-indigo { color: var(--indigo); }
.text-emerald { color: var(--emerald); }

.input-group-row {
    display: flex;
    gap: 16px;
}

.col-6 {
    flex: 1;
}

.divider {
    height: 1px;
    background-color: var(--divider-color);
    margin: 10px 0;
}

.badge {
    background-color: var(--input-bg);
    color: var(--indigo);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--card-border);
}

.note-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.result-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
}

.success-badge {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.warning-badge {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.comp-card {
    background-color: var(--card-bg-hover);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comp-card.new {
    border-color: var(--emerald-glow);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.comp-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.comp-card.old .comp-title { color: var(--text-secondary); }
.comp-card.new .comp-title { color: var(--emerald); }

.comp-item {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.comp-item .label {
    font-size: 11px;
    color: var(--text-muted);
}

.comp-item .value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.savings-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--divider-color);
    padding-top: 16px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-row .metric-val {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
}

.metric-row .text-emerald {
    color: var(--emerald);
}

.metric-row .text-indigo {
    color: var(--indigo);
}

/* Sidebar Column - Bank Rates */
.sticky-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 110px);
}

.border-bottom {
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 16px;
}

.sidebar-filters {
    display: flex;
    gap: 4px;
    background-color: var(--input-bg);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-top: 16px;
    border: 1px solid var(--card-border);
}

.filter-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 4px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background-color: var(--bg-surface);
    color: var(--indigo);
    box-shadow: var(--shadow-sm);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 12px; /* For clean scrollbar offset */
}

/* Custom Scrollbar for Sidebar & Table */
.sidebar-content::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sidebar-content::-webkit-scrollbar-track,
.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb,
.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--divider-color);
    border-radius: var(--radius-full);
}

.sidebar-content::-webkit-scrollbar-thumb:hover,
.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Bank Rate Item Card */
.bank-rate-item {
    background-color: var(--card-bg-hover);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease;
}

.bank-rate-item:hover {
    transform: translateY(-2px);
    border-color: var(--indigo);
}

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

.bank-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-logo-placeholder {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.bank-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
}

.bank-logo-fallback {
    font-weight: 800;
    font-size: 11px;
    color: var(--text-secondary);
    align-items: center;
    justify-content: center;
}

.bank-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.rate-badge {
    background-color: var(--indigo-glow);
    color: var(--indigo);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.bank-details-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.details-col {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.detail-label {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-val {
    font-weight: 600;
}

.apply-btn {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.2s ease;
}

.apply-btn:hover {
    background-color: var(--indigo);
    border-color: var(--indigo);
    color: white;
    box-shadow: 0 4px 8px var(--indigo-glow);
}

.sidebar-footer {
    padding: 12px 8px 0 8px;
    margin-top: 4px;
}

.footer-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
    display: block;
}

.sidebar-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 8px;
}

/* Footer Section */
.main-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px 0;
    margin-top: 80px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-theme);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
}

.footer-contact {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-contact a {
    color: var(--indigo);
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--indigo-hover);
    text-decoration: underline;
}

.footer-links h4, 
.footer-disclaimer h4 {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--indigo);
}

.footer-disclaimer p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--divider-color);
    padding-top: 30px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-sub-links {
    display: flex;
    gap: 20px;
}

.footer-sub-links a {
    color: var(--text-muted);
}

.footer-sub-links a:hover {
    color: var(--indigo);
}

/* Calculator Panel Switch visibility */
.calc-panel {
    display: none;
}

.calc-panel.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .sticky-sidebar {
        position: static;
    }
    
    .sidebar-card {
        max-height: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-disclaimer {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        display: none; /* Hide on mobile and show top bar */
    }
    
    .mobile-tabs-container {
        display: block;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .calc-card {
        padding: 16px;
    }

    .outputs-panel {
        padding: 16px;
        gap: 16px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
    }
    
    .card-header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .card-header h2 {
        font-size: 22px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-disclaimer {
        grid-column: span 1;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .card-header h2 {
        font-size: 19px;
    }
    
    .subtitle {
        font-size: 13px;
    }

    .input-label-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .input-label-row label {
        font-size: 13px;
        word-break: break-word;
    }

    .input-label-row input[type="number"] {
        width: 110px;
    }

    .slider-ticks {
        font-size: 10px;
    }

    .emi-result-card .result-value {
        font-size: 28px;
    }

    .center-value {
        font-size: 18px;
    }

    .input-group-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .col-6 {
        width: 100%;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Sidebar Search Input Styling */
.sidebar-search {
    position: relative;
    margin-top: 12px;
}

.sidebar-search input {
    padding-left: 38px;
    font-size: 13px;
    height: 38px;
}

.sidebar-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 15px;
    height: 15px;
    pointer-events: none;
}

/* FD Tenure Filter Dropdown — hidden by default, shown when FD Rates tab is active */
.sidebar-fd-tenure-container {
    display: none;
    margin-top: 16px;
}

.sidebar-fd-tenure-container.fd-filter-active {
    display: block;
}

/* Custom Switch for Senior Citizen Toggle */
.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg-hover);
    border: 1px solid var(--card-border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-theme);
}

.switch-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.switch-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.switch-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* The switch container */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

/* Hide default HTML checkbox */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider track */
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    transition: .3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 50%;
}

.theme-switch input:checked + .switch-slider {
    background-color: var(--emerald-glow);
    border-color: var(--emerald);
}

.theme-switch input:checked + .switch-slider:before {
    transform: translateX(24px);
    background-color: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
}

/* Senior Citizen Benefit Alert Card */
.senior-benefit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-top: -8px;
    animation: slideInDown 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.benefit-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.benefit-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald);
}

.benefit-value {
    font-size: 13px;
    color: var(--text-primary);
}

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

/* ---------------------------------------------------------
   Side-by-Side Bank Comparison Tool Styles
   --------------------------------------------------------- */

/* Sidebar checkbox custom styles */
.compare-checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 6px;
}

.compare-checkbox-container input {
    display: none;
}

.compare-checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: var(--input-bg);
}

.compare-checkbox-container input:checked + .compare-checkbox-custom {
    background-color: var(--indigo);
    border-color: var(--indigo);
}

.compare-checkbox-custom::after {
    content: "";
    width: 3px;
    height: 6px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
    margin-bottom: 2px;
}

.compare-checkbox-container input:checked + .compare-checkbox-custom::after {
    display: block;
}

.bank-rate-item.selected-for-compare {
    border-color: var(--indigo);
    box-shadow: 0 0 10px var(--indigo-glow);
}

/* Floating control bar in sidebar */
.comparison-floating-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg-hover);
    border-top: 1px solid var(--divider-color);
    padding: 12px 16px;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    animation: slideUp 0.3s ease-out;
    z-index: 10;
}

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

.compare-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-btn {
    background-color: var(--indigo);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-btn:hover:not(:disabled) {
    background-color: var(--indigo-hover);
    box-shadow: 0 4px 12px var(--indigo-glow);
}

.compare-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal dialog custom styles */
.comparison-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comparison-modal.active {
    display: flex;
    opacity: 1;
}

.comparison-modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 960px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalScale {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.comparison-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--divider-color);
}

.comparison-modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--rose);
}

.comparison-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(85vh - 70px);
}

/* Side-by-side Columns Layout */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.compare-column {
    background-color: var(--card-bg-hover);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.compare-column.highlight-best {
    border-color: var(--emerald);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.compare-bank-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider-color);
}

.compare-bank-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--input-border), var(--card-border));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: var(--text-primary);
}

.compare-bank-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.compare-detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compare-detail-row .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.compare-detail-row .value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.compare-detail-row .value.high-rate {
    color: var(--emerald);
}

.compare-detail-row .value.low-rate {
    color: var(--indigo);
}

.compare-saving-badge {
    align-self: flex-start;
    margin-top: 4px;
}

/* ---------------------------------------------------------
   Print Stylesheet for Downloadable PDF Reports
   --------------------------------------------------------- */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Force white background regardless of light/dark mode */
    html, body {
        background-color: #ffffff !important;
        color: #0f172a !important;
    }

    /* Hide all screen containers entirely from the layout flow */
    .main-header,
    .mobile-tabs-container,
    .main-content,
    .main-footer,
    .comparison-modal {
        display: none !important;
    }
    
    /* Display only the print container */
    #print-report-container {
        display: block !important;
        position: relative !important;
        background-color: #ffffff !important;
        color: #0f172a !important;
        font-family: 'Inter', system-ui, sans-serif !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
    }
    
    /* Override colors and styles for clean print output */
    .print-report {
        padding: 8mm 0 10mm 0;
    }
    
    .print-report h1 {
        color: #1e3a8a !important;
    }
    
    .print-report h2,
    .print-report h3 {
        color: #1e3a8a !important;
        border-left: 4px solid #10b981;
        padding-left: 10px;
        margin-top: 20px;
        margin-bottom: 12px;
        text-transform: uppercase;
        font-size: 13px;
        letter-spacing: 0.05em;
    }
    
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 16px;
        margin-bottom: 24px;
    }
    
    .print-table tbody tr:nth-child(even) {
        background-color: #f1f5f9 !important;
    }
    
    .print-table th,
    .print-table td {
        border: 1px solid #e2e8f0;
        padding: 8px 12px;
        font-size: 12px;
        text-align: left;
    }
    
    .print-table th {
        background-color: #e2e8f0 !important;
        color: #1e3a8a !important;
        font-weight: 700;
    }
    
    .print-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-top: 16px;
        margin-bottom: 24px;
    }
    
    .print-card {
        border: 1px solid #e2e8f0;
        border-top: 4px solid #3b82f6 !important;
        padding: 16px;
        border-radius: 6px;
        background-color: #f8fafc !important;
    }
    
    .print-card:nth-child(2) {
        border-top-color: #10b981 !important;
    }
    
    .print-card:nth-child(3) {
        border-top-color: #8b5cf6 !important;
    }
    
    .print-card:nth-child(4) {
        border-top-color: #f59e0b !important;
    }
    
    .print-card:nth-child(5) {
        border-top-color: #f43f5e !important;
    }
    
    .print-card-label {
        font-size: 11px;
        color: #64748b;
        text-transform: uppercase;
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    .print-card-value {
        font-size: 18px;
        font-weight: 700;
        color: #0f172a;
    }
    
    /* Page Break optimizations */
    .print-table tr {
        page-break-inside: avoid;
    }
    
    .print-watermark {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        font-size: 5rem;
        font-weight: 800;
        color: rgba(15, 23, 42, 0.03) !important;
        z-index: 1;
        pointer-events: none;
        white-space: nowrap;
        letter-spacing: 0.12em;
    }

    @page {
        size: A4 portrait;
        margin: 12mm 15mm 10mm 15mm;
    }
}

/* Screen wrapper hidden style */
.print-only-container {
    display: none;
}

/* SSY Specific Custom Styling */
.ssy-highlights-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
}

.ssy-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.ssy-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ssy-highlight-icon {
    width: 22px;
    height: 22px;
    color: var(--emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

.ssy-highlight-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ssy-highlight-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.eee-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
    display: inline-block;
    margin-top: 8px;
}

.deposit-phase-row {
    background-color: rgba(16, 185, 129, 0.03);
}

.growth-phase-row {
    background-color: rgba(99, 102, 241, 0.03);
}

/* SSY Formula & Historical Rates Section */
.ssy-formula-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
}

.ssy-formula-box {
    background-color: var(--input-bg);
    border-left: 4px solid var(--indigo);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: monospace, var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 14px 0;
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-all;
}

.ssy-formula-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.ssy-formula-item {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ssy-formula-item strong {
    color: var(--text-primary);
}

.ssy-history-table-wrapper {
    margin-top: 16px;
    overflow-x: auto;
}

.ssy-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.ssy-history-table th {
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-weight: 700;
    padding: 10px 14px;
    border-bottom: 2px solid var(--card-border);
}

.ssy-history-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-secondary);
}

.ssy-history-table tr:hover td {
    background-color: var(--card-bg-hover);
}

.current-rate-badge {
    background: var(--indigo);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: 6px;
}

/* Floating Back to Top Button with Scroll Progress Indicator */
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s ease,
                box-shadow 0.2s ease;
    outline: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.5);
}

.back-to-top-btn:active {
    transform: translateY(0) scale(0.98);
}

.back-to-top-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.5);
}

.back-to-top-btn .progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.back-to-top-btn .arrow-up-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease;
}

.back-to-top-btn:hover .arrow-up-icon {
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    .back-to-top-btn .progress-ring {
        width: 44px;
        height: 44px;
    }
}

/* =========================================================
   BankRateBazaar - Lead Generation & Management System
   ========================================================= */

/* Inline Lead CTA Cards */
.lead-cta-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lead-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.lead-cta-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lead-cta-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}
.lead-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 98;
    background: var(--bg-surface);
    border-top: 1px solid var(--card-border);
    padding: 10px 16px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    .sticky-mobile-cta .btn-lead-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Lead Modals */
.lead-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}
.lead-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease forwards;
}
.lead-modal-container {
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    position: relative;
}
.lead-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--input-bg);
}
.lead-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lead-modal-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.lead-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}
.lead-modal-close:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.05);
}
.lead-modal-body {
    padding: 24px;
}

/* Forms */
.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 768px) {
    .lead-cta-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }
    .lead-cta-content {
        text-align: center;
    }
    .lead-cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .lead-cta-actions button {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 600px) {
    .lead-form-grid {
        grid-template-columns: 1fr;
    }
}
.lead-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.lead-form-group.full-width {
    grid-column: 1 / -1;
}
.lead-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.lead-form-label span.req {
    color: #ef4444;
}
.lead-form-input, .lead-form-select, .lead-form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.lead-form-input:focus, .lead-form-select:focus, .lead-form-textarea:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.lead-form-error {
    font-size: 12px;
    color: #ef4444;
    display: none;
    margin-top: 2px;
}
.lead-form-error.active {
    display: block;
}
.lead-consent-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}
.lead-consent-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--indigo);
    cursor: pointer;
}
.lead-consent-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Alert Messages */
.lead-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
    line-height: 1.5;
}
.lead-alert.active {
    display: block;
}
.lead-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}
.lead-alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}
.lead-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Buttons */
.btn-lead-primary {
    background: linear-gradient(135deg, var(--indigo), #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    height: 42px;
    padding: 0 20px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    box-sizing: border-box;
}
.btn-lead-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.btn-lead-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-lead-outline {
    background: transparent;
    color: var(--indigo);
    font-weight: 600;
    font-size: 14px;
    height: 42px;
    padding: 0 20px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--indigo);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.btn-lead-outline:hover {
    background: rgba(59, 130, 246, 0.08);
}

/* Admin Dashboard Styling */
.admin-leads-dashboard {
    display: none;
    margin: 30px 0;
}
.admin-leads-dashboard.active {
    display: block;
}
.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}
.metric-card:hover {
    transform: translateY(-2px);
}
.metric-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.metric-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}
.metric-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Admin Filter Toolbar */
.admin-toolbar {
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.admin-search-input {
    flex: 1 1 200px;
    min-width: 180px;
}
.admin-filter-select {
    width: 150px;
}

/* Table */
.admin-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}
.admin-leads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}
.admin-leads-table th {
    background: var(--input-bg);
    padding: 12px 16px;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
    white-space: nowrap;
}
.admin-leads-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-primary);
    white-space: nowrap;
}
.admin-leads-table tr:hover {
    background: rgba(59, 130, 246, 0.03);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-NEW { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-CONTACTED { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-FOLLOW_UP { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.status-QUALIFIED { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.status-APPLICATION_STARTED { background: rgba(99, 102, 241, 0.15); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.3); }
.status-CONVERTED { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-NOT_INTERESTED { background: rgba(100, 116, 139, 0.15); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.3); }
.status-INVALID { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    border-left: 2px solid var(--card-border);
    padding-left: 16px;
}
.timeline-item {
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--indigo);
}
.timeline-action {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.timeline-time {
    font-size: 11px;
    color: var(--text-muted);
}
.timeline-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    background: var(--input-bg);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

/* Contextual CTA for Calculator results */
.calc-context-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    animation: fadeIn 0.3s ease forwards;
}
.calc-context-cta-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}
.calc-context-cta-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}
.calc-context-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}
.calc-context-buttons button {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
}

/* Responsive Helpers */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .calc-context-buttons {
        flex-direction: column;
        gap: 6px;
    }
    .calc-context-buttons button {
        width: 100%;
    }
}

/* Header Action Buttons Styles & Alignment Overrides */
.header-actions .open-callback-btn {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--indigo);
    background-color: transparent;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.header-actions .open-callback-btn:hover {
    background-color: var(--indigo);
    color: white;
    box-shadow: 0 4px 12px var(--indigo-glow);
}

.header-actions .open-lead-btn {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, var(--indigo), #1d4ed8);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    box-sizing: border-box;
    white-space: nowrap;
}

.header-actions .open-lead-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

@media (max-width: 1024px) {
    .header-actions {
        gap: 8px;
    }
    .header-actions .open-callback-btn,
    .header-actions .open-lead-btn {
        padding: 0 12px;
        font-size: 12px;
        height: 36px;
    }
}

/* Dedicated Admin Portal Styling Rules */
.admin-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .admin-layout-grid {
        grid-template-columns: 220px 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .admin-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Sticky Sidebar Layout */
.sticky-sidebar {
    background-color: var(--card-bg-hover);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    top: 20px;
    position: sticky;
}

.admin-sidebar-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.sidebar-sec-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: 8px;
    margin-bottom: 6px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 10px;
}

.admin-nav-link i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.admin-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.admin-nav-link.active {
    background-color: var(--indigo-glow);
    color: var(--indigo);
    border-left: 3px solid var(--indigo);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding-left: 11px;
}

.admin-panel {
    animation: adminFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Profile Dropdown Styling */
.admin-profile-wrapper {
    position: relative;
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 14px;
    background: var(--card-bg-hover);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.profile-dropdown:hover {
    border-color: var(--indigo);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.admin-dropdown-menu {
    display: none;
    position: absolute;
    top: 105%;
    right: 0;
    width: 200px;
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 100;
    flex-direction: column;
    gap: 2px;
}

.admin-dropdown-menu.active {
    display: flex;
}

.admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.admin-dropdown-item.logout-btn:hover {
    background: rgba(244, 63, 94, 0.1);
    color: var(--rose);
}

/* Trend Badges */
.trend-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
}

.trend-neutral { background: rgba(107, 114, 128, 0.1); color: var(--text-muted); }
.trend-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.trend-purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.trend-cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.trend-orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.trend-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.trend-red { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

/* Conversion Funnel Horizontal Pipeline */
.funnel-pipeline-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
}

.funnel-stage {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.funnel-stage:hover {
    background: rgba(255, 255, 255, 0.02);
}

.funnel-stage-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.funnel-stage-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.funnel-stage-count {
    font-size: 14px;
    font-weight: 800;
    margin-top: 4px;
}

.funnel-stage-ratio {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.funnel-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 18px;
    padding: 0 4px;
}

.funnel-arrow-ratio {
    font-size: 10px;
    font-weight: 700;
    color: var(--indigo);
    margin-top: 4px;
}

/* Charts Grids */
@media (max-width: 900px) {
    .admin-charts-grid,
    .admin-charts-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Skeletons */
.skeleton-loader {
    background: linear-gradient(90deg, var(--input-bg) 25%, rgba(255, 255, 255, 0.05) 50%, var(--input-bg) 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
    border-radius: 4px;
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-text-sm {
    height: 8px;
    width: 50%;
}

.skeleton-title {
    height: 18px;
    width: 40%;
    margin-bottom: 12px;
}

/* Tab Management UI inside Banks, Content, and Settings */
.bank-rates-tabs, .content-tabs, .settings-tabs, .followups-tabs {
    flex-wrap: wrap;
}

.rates-subtab, .content-subtab, .settings-subtab, .followups-filter-tab {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    height: auto;
}

.rates-subtab:hover, .content-subtab:hover, .settings-subtab:hover, .followups-filter-tab:hover {
    color: var(--text-primary);
}

.rates-subtab.active, .content-subtab.active, .settings-subtab.active, .followups-filter-tab.active {
    color: var(--indigo);
    border-bottom: 2px solid var(--indigo);
    background: transparent;
}

/* Rate inputs list styling */
.admin-bank-rate-item {
    background-color: var(--input-bg);
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.admin-rate-input {
    width: 90px;
    text-align: right;
}

/* Mobile Quick Fixes */
@media (max-width: 480px) {
    .admin-header-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-profile-wrapper {
        justify-content: space-between;
        width: 100%;
    }
}

.loan-cat-tab {
    transition: all 0.2s ease;
}

.loan-cat-tab.active {
    background-color: var(--indigo) !important;
    color: white !important;
    border-color: var(--indigo) !important;
    box-shadow: 0 4px 12px var(--indigo-glow) !important;
}





