:root {
    --bg-dark: #0a0a0f;
    --navy-dark: #101223;
    --navy-header-bg: #0c0d1b;
    --text-main: #f5f5f7;
    --text-muted: #a1a1aa;
    --accent-saffron: #ff8000;
    --accent-saffron-glow: rgba(255, 128, 0, 0.15);
    --accent-navy: #1d4ed8;
    --accent-secondary: #8b5cf6;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-bg-hover: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 128, 0, 0.5);
    --success-green: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger-red: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
    font-family: 'Outfit', sans-serif;
}

/* Saffron Topbar */
.saffron-topbar {
    height: 4px;
    background: linear-gradient(90deg, #ff9933 0%, #ffffff 50%, #128807 100%);
    width: 100%;
}

/* Navy Header styles */
.navy-header {
    background-color: var(--navy-header-bg);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 5%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: #ff9933;
}

.header-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

.presets-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

#preset-selector {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

#preset-selector:focus {
    border-color: var(--accent-saffron);
}

.back-home-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-home-link:hover {
    color: var(--text-main);
}

/* Main Layout */
.dashboard-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: start;
}

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

/* Glass Card styling */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.8rem;
    backdrop-filter: blur(15px);
}

/* Input Panel Styling */
.inputs-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.panel-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.panel-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Form Sections */
.form-section {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

.section-title-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
}

.section-num {
    background: rgba(255, 128, 0, 0.1);
    color: var(--accent-saffron);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid rgba(255, 128, 0, 0.25);
}

.section-title-bar h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

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

.col-span-2 {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .form-grid > * {
        grid-column: span 2;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 8px var(--accent-saffron-glow);
}

/* Input prefix styling */
.input-prefix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    pointer-events: none;
}

.input-prefix-wrapper input {
    width: 100%;
    padding-left: 1.8rem;
}

.input-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Right Dashboard Panel */
.dashboard-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Recommendation Box */
.recommendation-banner {
    position: relative;
    background: linear-gradient(135deg, #16182c 0%, #0d0f1f 100%);
    border: 1px solid rgba(255, 128, 0, 0.2);
    border-radius: 12px;
    padding: 1.8rem;
    overflow: hidden;
}

.banner-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 128, 0, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 128, 0, 0.1);
    color: #ff9933;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 128, 0, 0.2);
    margin-bottom: 0.8rem;
}

.recommendation-banner h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.recommendation-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.saving-metric {
    display: flex;
    flex-direction: column;
}

.saving-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.saving-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--success-green);
    line-height: 1;
    margin-top: 0.25rem;
}

/* Regime Comparison Grid */
.regime-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .regime-comparison-grid {
        grid-template-columns: 1fr;
    }
}

.regime-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.regime-card.active-recommend {
    border-color: var(--accent-saffron);
    box-shadow: 0 0 15px rgba(255, 128, 0, 0.08);
    background: rgba(255, 128, 0, 0.02);
}

.regime-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.regime-badge.saffron {
    background: rgba(255, 128, 0, 0.1);
    color: #ff9933;
    border: 1px solid rgba(255, 128, 0, 0.25);
}

.regime-badge.navy {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.regime-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
}

.regime-tax-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0.25rem 0;
    color: var(--text-main);
}

.regime-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

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

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.breakdown-row span {
    color: var(--text-muted);
}

.breakdown-row strong {
    color: var(--text-main);
    font-family: 'IBM Plex Mono', monospace;
}

.breakdown-row.highlight-row {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.breakdown-row.highlight-row strong {
    color: var(--accent-saffron);
}

/* Custom Chart styling */
.chart-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.card-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.custom-chart-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    width: 90px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.chart-bar-wrapper {
    flex-grow: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.chart-bar-fill {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
    border-radius: 2px;
}

.saffron-bar {
    background: linear-gradient(90deg, #ffaa44, #ff8000);
    box-shadow: 0 0 10px rgba(255, 128, 0, 0.2);
}

.navy-bar {
    background: linear-gradient(90deg, #4488ff, #1d4ed8);
}

.chart-bar-pct {
    position: absolute;
    right: 0.6rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Advisory Box */
.advisory-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.6rem;
    margin-bottom: 0.8rem;
}

.advisory-text {
    font-size: 0.88rem;
    color: #e4e4e7;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.advisory-text p {
    margin-bottom: 0.6rem;
}

.advisory-text ul {
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
}

.advisory-text li {
    margin-bottom: 0.3rem;
}

.advisory-text strong {
    color: #ff9933;
}

.advisory-actions {
    display: flex;
    justify-content: flex-end;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-saffron), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 128, 0, 0.4);
}

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

.btn-outline:hover {
    background: var(--card-bg-hover);
    border-color: var(--accent-saffron);
}

/* Bottom Knowledge Section */
.knowledge-navigator-section {
    margin-top: 3.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ff9933, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.knowledge-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    transform: translateY(-2px);
    background: var(--card-bg-hover);
    border-color: rgba(255, 128, 0, 0.2);
}

.k-icon {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.knowledge-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.knowledge-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Footer styles */
.footer {
    margin-top: 4rem;
    border-top: 1px solid var(--border-light);
    padding: 2rem 5%;
    text-align: center;
    background: rgba(10, 10, 15, 0.5);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer .logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.highlight {
    color: #ff9933;
}
