/* 
 * AlphaNifty Investment Calculators - Design System 
 */

/* Custom Reset & CSS Variables */
:root {
    /* Color Palette */
    --color-bg-primary: #FFFFFF;
    --color-bg-card: #FFFFFF;
    --color-text-primary: #0F172A;
    --color-text-secondary: #475569;
    --color-text-light: #94A3B8;
    
    /* Green (Growth) */
    --color-green: #10B981;
    --color-green-dark: #065F46;
    --color-green-light: #ECFDF5;
    --grad-green: linear-gradient(135deg, #00A86B 0%, #10B981 100%);
    --grad-green-glow: 0 0 15px rgba(16, 185, 129, 0.4);

    /* Golden Yellow (Wealth) */
    --color-gold: #F5A623;
    --color-gold-dark: #B38F00;
    --color-gold-light: #FFFBEB;
    --grad-gold: linear-gradient(135deg, #FFD54F 0%, #F5A623 50%, #B38F00 100%);
    --grad-gold-glow: 0 0 15px rgba(245, 166, 35, 0.4);

    /* Corporate Blue (Trust) */
    --color-blue: #2563EB;
    --color-blue-dark: #1E3E62;
    --color-blue-light: #EFF6FF;
    --grad-blue: linear-gradient(135deg, #2563EB 0%, #1E3E62 100%);
    --grad-blue-glow: 0 0 15px rgba(37, 99, 235, 0.4);

    /* Neutral Gradients & Borders */
    --border-color: #E2E8F0;
    --border-glass: rgba(255, 255, 255, 0.7);
    --shadow-premium: 0 10px 30px -5px rgba(11, 25, 44, 0.06), 0 4px 12px -2px rgba(11, 25, 44, 0.04);
    --shadow-hover: 0 20px 40px -5px rgba(11, 25, 44, 0.12), 0 8px 16px -2px rgba(11, 25, 44, 0.06);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    /* Font stack */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.text-green { color: var(--color-green); }
.text-gold { color: var(--color-gold); }
.text-blue { color: var(--color-blue); }
.font-outfit { font-family: var(--font-heading); }
.hidden { display: none !important; }

/* Wrapper Layout */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

.content-container, .header-container, .footer-container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Header Styling */
.main-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Tab Navigation Buttons */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: #F1F5F9;
    padding: 0.35rem;
    border-radius: var(--radius-md);
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1rem;
}

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

.tab-btn.active {
    background-color: var(--color-bg-card);
    color: var(--color-blue-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Hero Section */
.hero-section {
    margin-bottom: 2.5rem;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-blue-dark);
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Calculator Grid Setup */
.calculator-grid,
.bottom-results-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Cards System */
.calculator-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    padding: 2.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calculator-card:hover {
    box-shadow: var(--shadow-hover);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: var(--color-blue-dark);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Form / Inputs styling */
.inputs-group {
    display: none;
}

.inputs-group.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.input-wrapper {
    margin-bottom: 1.8rem;
}

.input-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.input-labels label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.input-box-wrapper {
    display: flex;
    align-items: center;
    background-color: #F8FAFC;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.65rem;
    transition: border-color 0.2s ease;
}

.input-box-wrapper:focus-within {
    border-color: var(--color-blue);
    background-color: #FFFFFF;
}

.input-box-wrapper input {
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: right;
    width: 100px;
    outline: none;
}

/* Remove Arrows from Number Input */
.input-box-wrapper input::-webkit-outer-spin-button,
.input-box-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-box-wrapper input[type=number] {
    -moz-appearance: textfield;
}

.currency-prefix {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-right: 0.25rem;
}

.currency-suffix {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-left: 0.25rem;
}

.input-help-text {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.4rem;
}

/* Custom Range Sliders */
.styled-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-pill);
    background: #E2E8F0;
    outline: none;
    margin: 0.5rem 0;
}

/* Slider Limits Text */
.slider-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Thumb customizations */
.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    border: 3px solid #FFFFFF;
}

.styled-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    border: 3px solid #FFFFFF;
}

.styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.styled-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

/* Slider Track Color variations */
.green-slider::-webkit-slider-thumb {
    background: var(--color-green);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.green-slider::-moz-range-thumb {
    background: var(--color-green);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.green-slider::-webkit-slider-thumb:active {
    box-shadow: var(--grad-green-glow);
}

.blue-slider::-webkit-slider-thumb {
    background: var(--color-blue);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.blue-slider::-moz-range-thumb {
    background: var(--color-blue);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.blue-slider::-webkit-slider-thumb:active {
    box-shadow: var(--grad-blue-glow);
}

.gold-slider::-webkit-slider-thumb {
    background: var(--color-gold);
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.3);
}
.gold-slider::-moz-range-thumb {
    background: var(--color-gold);
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.3);
}
.gold-slider::-webkit-slider-thumb:active {
    box-shadow: var(--grad-gold-glow);
}

/* Step Up Toggle Card */
.step-up-toggle-card {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-top: 1.5rem;
}

.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.toggle-info {
    display: flex;
    flex-direction: column;
}

.toggle-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-blue-dark);
}

.toggle-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* iOS Toggle Switch Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--color-green);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Step-Up controls body container */
.stepup-inputs-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.stepup-inputs-body.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), opacity 0.3s ease;
}

.step-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    background: #E2E8F0;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.step-type-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.45rem 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-type-btn.active {
    background-color: var(--color-bg-card);
    color: var(--color-text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Actions footer buttons */
.inputs-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background: var(--color-blue-light);
    color: var(--color-blue);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--color-blue);
    color: #FFFFFF;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

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

/* Right Column styling */
.results-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}



/* Logo 3D Extruded Container */
.logo-3d-container {
    position: relative;
    height: 52px;
    width: 125px;
    display: inline-block;
    transform-style: preserve-3d;
    animation: rotate3DContinuous 12s linear infinite;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: grab;
}

.logo-3d-container:active {
    cursor: grabbing;
}

/* On hover: pause rotation and scale container */
.logo-link:hover .logo-3d-container {
    animation-play-state: paused;
    transform: perspective(800px) scale(1.08);
}

/* Logo Image Styling for Extrusion Layers */
.logo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-style: preserve-3d;
    backface-visibility: visible;
    pointer-events: none; /* Let container handle mouse events */
}

/* Offset layers along Z-axis and apply brightness shading for ambient occlusion */
.logo-img.layer-1  { transform: translateZ(0px); }
.logo-img.layer-2  { transform: translateZ(-0.4px); filter: brightness(0.96); }
.logo-img.layer-3  { transform: translateZ(-0.8px); filter: brightness(0.92); }
.logo-img.layer-4  { transform: translateZ(-1.2px); filter: brightness(0.88); }
.logo-img.layer-5  { transform: translateZ(-1.6px); filter: brightness(0.84); }
.logo-img.layer-6  { transform: translateZ(-2.0px); filter: brightness(0.80); }
.logo-img.layer-7  { transform: translateZ(-2.4px); filter: brightness(0.76); }
.logo-img.layer-8  { transform: translateZ(-2.8px); filter: brightness(0.72); }
.logo-img.layer-9  { transform: translateZ(-3.2px); filter: brightness(0.68); }
.logo-img.layer-10 { transform: translateZ(-3.6px); filter: brightness(0.64); }

/* Continuous 360-degree rotation animation */
@keyframes rotate3DContinuous {
    0% {
        transform: perspective(800px) rotateY(0deg);
    }
    100% {
        transform: perspective(800px) rotateY(360deg);
    }
}

/* Dedicated 3D visualizer card styles */
.visualizer-card-3d {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.visualizer-3d-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1.5rem;
    gap: 0.8rem;
}

.visualizer-3d-header .section-title {
    margin-bottom: 0;
    justify-content: center;
}

.speed-badge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.speed-badge {
    background: var(--color-green-light);
    color: var(--color-green-dark);
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.05);
    display: inline-block;
}

.speed-badge.swp-badge {
    background: var(--color-blue-light);
    color: var(--color-blue-dark);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.05);
}

/* Floating animation for badge tooltips in SVG */
@keyframes badgeBob {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3.5px); }
    100% { transform: translateY(0); }
}

.floating-badge {
    animation: badgeBob 4s ease-in-out infinite;
    transform-origin: center;
}

#cyl-1-badge { animation-delay: 0s; }
#cyl-2-badge { animation-delay: 1.3s; }
#cyl-3-badge { animation-delay: 2.6s; }

/* 2x2 metrics grid card design */
.results-summary-card {
    background: #FFFFFF;
}

.results-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.metric-box {
    background: #FFFFFF;
    border: 1.5px solid #F1F5F9;
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-box:hover {
    transform: translateY(-2.5px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
}

.metric-box.metric-gold {
    border-left: 4.5px solid var(--color-gold);
}

.metric-box.metric-blue {
    border-left: 4.5px solid var(--color-blue);
}

.metric-box.metric-green {
    border-left: 4.5px solid var(--color-green);
}

.metric-box.metric-teal {
    border-left: 4.5px solid #0D9488;
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.metric-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-blue-dark);
}

.metric-box.metric-green .metric-value {
    color: var(--color-green);
}

.metric-box.metric-teal .metric-value {
    color: #0D9488;
}

/* Dynamic Wealth Plan Alerts */
.alert-box {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.alert-box i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.alert-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.alert-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 0.25rem;
}

.alert-desc {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Success Alert (Growing, sustainable - Green background, blue shield) */
.alert-box.success-alert {
    background-color: #ECFDF5;
    border-color: #D1FAE5;
    color: #065F46;
}
.alert-box.success-alert i {
    color: #3B82F6;
}

/* Warning Alert (Runs out - Red) */
.alert-box.warning-alert {
    background-color: #FEF2F2;
    border-color: #FEE2E2;
    color: #991B1B;
}
.alert-box.warning-alert i {
    color: #EF4444;
}

/* Caution Alert (Declining capital - Yellow) */
.alert-box.caution-alert {
    background-color: #FFFBEB;
    border-color: #FEF3C7;
    color: #92400E;
}
.alert-box.caution-alert i {
    color: #F5A623;
}

/* Info Alert (compounding tips - Blue) */
.alert-box.info-alert {
    background-color: #EFF6FF;
    border-color: #DBEAFE;
    color: #1E40AF;
}
.alert-box.info-alert i {
    color: #3B82F6;
}

/* Graphics Card Styles */
.graphics-card {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    min-height: 410px;
}

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

.graphics-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding-bottom: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.graphics-tab-btn.active {
    color: var(--color-blue);
    border-bottom-color: var(--color-blue);
}

.graphics-viewports {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphics-viewport {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.4s ease;
}

.graphics-viewport.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.donut-chart-container {
    width: 250px;
    height: 250px;
    position: relative;
    margin: 0 auto;
}

/* 3D Visualizer styling */
.visualizer-3d-wrapper {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene-3d {
    width: 100%;
    height: 100%;
}

/* Hover effects & animations on 3D elements */
.pillar-group {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pillar-group:hover {
    transform: translateY(-5px);
}

/* Text floating above pillars */
.pillar-group text {
    user-select: none;
    pointer-events: none;
}

#p-grow-arrow {
    transform-origin: center;
}

.chart-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.6rem;
    text-align: center;
}

/* Bottom table section */
.projection-table-section {
    margin-top: 1rem;
}

.table-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.table-header-controls .section-title {
    margin-bottom: 0;
}

.export-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

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

/* Projection table design */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.projection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: right;
}

.projection-table th, .projection-table td {
    padding: 0.9rem 1.2rem;
}

.projection-table th {
    background-color: #F1F5F9;
    color: var(--color-blue-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    border-bottom: 1.5px solid var(--border-color);
}

.projection-table th:first-child, .projection-table td:first-child {
    text-align: center;
    font-weight: 600;
}

.projection-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    background-color: #FFFFFF;
    transition: background-color 0.15s ease;
}

.projection-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.projection-table tbody tr:hover {
    background-color: var(--color-blue-light);
}

.projection-table tbody tr:last-child {
    border-bottom: none;
    font-weight: 700;
    background-color: #EFF6FF !important;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0B192C;
    color: #FFFFFF;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(11, 25, 44, 0.2);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 1000;
    transform: translateY(120px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.active {
    transform: translateY(0);
}

.toast-icon {
    color: var(--color-green);
    font-size: 1.15rem;
}

.toast-message {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer layout */
.app-footer {
    background-color: #0B192C;
    color: #94A3B8;
    padding: 2.2rem 0;
    margin-top: 4rem;
    font-size: 0.85rem;
    border-top: 3px solid var(--color-green);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

/* Print Stylesheet */
@media print {
    body {
        background: #FFFFFF;
        color: #000000;
    }
    .main-header, .nav-tabs, .hero-section, .input-card, .inputs-footer-actions, .graphics-tabs, .graphics-card, .export-actions, .app-footer, .toast-notification, .chart-disclaimer {
        display: none !important;
    }
    .main-content {
        padding: 0;
    }
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    .results-summary-card {
        border: none;
        box-shadow: none;
        padding: 0;
        margin-bottom: 2rem;
    }
    .projection-table-section {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .projection-table th {
        background-color: #E2E8F0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .calculator-grid,
    .bottom-results-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    .nav-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex-shrink: 0;
        flex: 1;
        text-align: center;
    }
    .hero-title {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-top: 0.5rem;
    }
    .main-content {
        padding: 1.2rem 0;
    }
    .content-container, .header-container, .footer-container {
        width: 94%;
    }
    .calculator-card {
        padding: 1.5rem;
    }
    .results-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-3d-container {
        width: 110px;
        height: 45px;
    }
    .calculator-card {
        padding: 1.15rem;
        border-radius: var(--radius-md);
    }
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1.4rem;
    }
    .input-wrapper {
        margin-bottom: 1.4rem;
    }
    .input-labels {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    .input-box-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    .input-box-wrapper input {
        width: 100%;
        text-align: right;
    }
    .inputs-footer-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .inputs-footer-actions button, .inputs-footer-actions .btn-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    .visualizer-3d-wrapper {
        height: 220px;
    }
    .projection-table th, .projection-table td {
        padding: 0.5rem 0.35rem;
        font-size: 0.75rem;
    }
    .alert-box {
        padding: 0.9rem;
        gap: 0.7rem;
    }
    .alert-title {
        font-size: 0.85rem;
    }
    .alert-desc {
        font-size: 0.78rem;
    }
    .wealth-education-section {
        padding: 1.2rem;
    }
    .education-box {
        padding: 1.2rem;
    }

    .export-actions {
        width: 100%;
    }
    .export-actions button {
        flex: 1;
        justify-content: center;
    }
    .graphics-tabs {
        gap: 0.8rem;
    }
    .graphics-tab-btn {
        font-size: 0.82rem;
        padding-bottom: 0.4rem;
    }
}

/* Centering Wealth Breakdown Title */
#results-card-title {
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

/* Wealth Education Section Styling */
.wealth-education-section {
    margin-top: 2.5rem;
    padding: 2.5rem;
}

.section-subtitle-edu {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    margin-top: -0.5rem;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
}

.education-box {
    background: #FFFFFF;
    border: 1.5px solid #F1F5F9;
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 850px;
}

.education-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(11, 25, 44, 0.08), 0 4px 12px -2px rgba(11, 25, 44, 0.04);
}

.education-box.border-green {
    border-top: 5px solid var(--color-green);
}

.education-box.border-blue {
    border-top: 5px solid var(--color-blue);
}

.education-box.border-gold {
    border-top: 5px solid var(--color-gold);
}

.edu-icon-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.edu-icon-header i {
    font-size: 1.6rem;
}

.edu-icon-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-blue-dark);
}

.edu-desc {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.edu-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 0;
}

.edu-list li {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.45;
}

.edu-list li::before {
    content: "•";
    color: var(--color-blue);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0.8rem;
}

.education-box.border-green .edu-list li::before {
    color: var(--color-green);
}

.education-box.border-gold .edu-list li::before {
    color: var(--color-gold);
}

/* Responsiveness for education grid */
@media (max-width: 1024px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Inputs Column Wrapper */
.inputs-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Premium Educational Guide Elements */
.edu-points {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.edu-point-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.edu-point-bullet {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.edu-point-item:hover .edu-point-bullet {
    transform: scale(1.15) rotate(8deg);
}

.bullet-green {
    background-color: var(--color-green-light);
    color: var(--color-green);
}

.bullet-blue {
    background-color: var(--color-blue-light);
    color: var(--color-blue);
}

.bullet-gold {
    background-color: var(--color-gold-light);
    color: var(--color-gold);
}

.edu-point-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-blue-dark);
    margin-bottom: 0.2rem;
}

.edu-point-text span {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: block;
}

/* Mobile adjustments for educational section */
@media (max-width: 480px) {
    .edu-point-item {
        gap: 0.8rem;
    }
    .edu-point-bullet {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }
    .edu-point-text strong {
        font-size: 0.88rem;
    }
    .edu-point-text span {
        font-size: 0.8rem;
    }
}


