/**
 * USA Tax Calculator - Theme-Specific Styles
 * Professional styling with American design elements
 */

/* USA-specific color overrides and enhancements */
:root {
    /* Enhanced USA color palette */
    --usa-navy: #001F3F;
    --usa-liberty-blue: #002F6C;
    --usa-red: #C8102E;
    --usa-crimson: #DC143C;
    --usa-white: #FFFFFF;
    --usa-silver: #C4CDD5;
    --usa-gold: #FFD700;

    /* Patriotic gradients */
    --gradient-patriotic: linear-gradient(135deg, var(--usa-liberty-blue) 0%, var(--usa-red) 100%);
    --gradient-liberty: linear-gradient(135deg, var(--usa-navy) 0%, var(--usa-liberty-blue) 100%);
    --gradient-freedom: linear-gradient(135deg, var(--usa-white) 0%, var(--usa-silver) 100%);

    /* Professional government-style colors */
    --gov-blue: #004B87;
    --gov-red: #B91C1C;
    --gov-gray: #374151;
    --gov-light-gray: #F3F4F6;

    /* Calculator specific colors */
    --calculator-bg: #f8fafc;
    --form-border: #e1e5e9;
    --result-card: #ffffff;
    --result-border: #e1e5e9;
    --tab-active: var(--usa-liberty-blue);
    --tab-hover: #e6f0ff;
}

/* Header with American styling */
.header {
    background: var(--gradient-liberty);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpolygon points='50 0 60 40 100 40 70 60 80 100 50 75 20 100 30 60 0 40 40 40'/%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

/* USA-themed badges and elements */
.tax-year-badge {
    background: rgba(255, 215, 0, 0.9);
    color: var(--usa-navy);
    border: 2px solid var(--usa-gold);
    font-weight: 700;
    text-shadow: none;
}

.features-badges .badge {
    background: var(--usa-gold);
    color: var(--usa-navy);
    border: 1px solid var(--usa-liberty-blue);
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.features-badges .badge:nth-child(even) {
    background: var(--usa-red);
    color: var(--usa-white);
    border: 1px solid var(--usa-crimson);
}

/* Navigation tabs with American styling */
.nav-tabs {
    background: linear-gradient(to right, var(--usa-white) 0%, var(--usa-silver) 50%, var(--usa-white) 100%);
    border-bottom: 3px solid var(--usa-liberty-blue);
}

.nav-btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.nav-btn::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--usa-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-btn:hover::before {
    width: 80%;
}

.nav-btn.active {
    color: var(--usa-liberty-blue);
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 47, 108, 0.05) 100%);
}

.nav-btn.active::before {
    width: 100%;
    background: var(--usa-red);
}

/* Form styling with government-grade appearance */
.input-panel {
    border: 2px solid var(--border-light);
    background: linear-gradient(145deg, var(--usa-white) 0%, #f8f9fa 100%);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.input-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-patriotic);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.input-panel {
    position: relative;
}

/* Enhanced form controls */
.form-group input:focus,
.form-group select:focus {
    border-color: var(--usa-liberty-blue);
    box-shadow: 
        0 0 0 3px rgba(0, 47, 108, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

/* Radio and checkbox styling */
.radio-label,
.checkbox-label {
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.radio-label:hover,
.checkbox-label:hover {
    background: linear-gradient(145deg, rgba(0, 47, 108, 0.02) 0%, rgba(0, 47, 108, 0.05) 100%);
    border-color: var(--usa-liberty-blue);
}

/* Button enhancements */
.btn-primary {
    background: var(--gradient-liberty);
    border: 2px solid var(--usa-liberty-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    border: 2px solid var(--usa-liberty-blue);
    color: var(--usa-liberty-blue);
    background: var(--usa-white);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--usa-liberty-blue);
    color: var(--usa-white);
}

/* Results panel with professional government styling */
.results-panel {
    background: linear-gradient(145deg, var(--usa-white) 0%, #f8f9fa 100%);
    border: 2px solid var(--border-light);
    position: relative;
}

.results-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-patriotic);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Result cards with enhanced styling */
.result-card {
    background: var(--usa-white);
    border: 1px solid var(--border-light);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.result-card h3 {
    color: var(--usa-liberty-blue);
    border-bottom: 2px solid var(--usa-liberty-blue);
    position: relative;
}

.result-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 2px;
    background: var(--usa-red);
}

.result-card h4 {
    color: var(--gov-blue);
    font-weight: 600;
}

.result-row.highlight {
    background: var(--gradient-liberty);
    box-shadow: 
        0 2px 4px rgba(0, 47, 108, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Tax rates info styling */
.tax-rates-info {
    background: linear-gradient(145deg, var(--gov-light-gray) 0%, var(--usa-white) 100%);
    border: 1px solid var(--usa-liberty-blue);
    position: relative;
}

.tax-rates-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-patriotic);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.tax-rates-info ul {
    padding-left: var(--space-4);
}

.tax-rates-info strong {
    color: var(--usa-liberty-blue);
    font-weight: 700;
}

/* Info text with American styling */
.info-text {
    background: linear-gradient(135deg, rgba(0, 47, 108, 0.05) 0%, rgba(0, 47, 108, 0.02) 100%);
    border-left: 4px solid var(--usa-liberty-blue);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.info-text small {
    color: var(--usa-liberty-blue);
    font-weight: 600;
}

/* Chart container enhancements */
.chart-container {
    background: var(--usa-white);
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-patriotic);
    z-index: 1;
}

/* Loading states with American theming */
.loading {
    background: linear-gradient(145deg, var(--usa-white) 0%, var(--gov-light-gray) 100%);
    border: 2px dashed var(--usa-liberty-blue);
    border-radius: var(--radius-xl);
    position: relative;
}

.loading::before {
    content: '🇺🇸';
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: var(--text-2xl);
    opacity: 0.3;
}

.loading h2 {
    color: var(--usa-liberty-blue);
    font-weight: 700;
}

/* Error and success states */
.alert {
    border-radius: var(--radius);
    padding: var(--space-4);
    margin: var(--space-4) 0;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-error {
    background: rgba(220, 20, 60, 0.1);
    color: var(--usa-crimson);
    border-left-color: var(--usa-crimson);
}

.alert-success {
    background: rgba(34, 139, 34, 0.1);
    color: var(--success-green);
    border-left-color: var(--success-green);
}

.alert-warning {
    background: rgba(255, 140, 0, 0.1);
    color: var(--warning-orange);
    border-left-color: var(--warning-orange);
}

.alert-info {
    background: rgba(30, 144, 255, 0.1);
    color: var(--info-blue);
    border-left-color: var(--info-blue);
}

/* Footer with American styling */
.footer {
    background: var(--usa-navy);
    color: var(--usa-white);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-patriotic);
}

.footer h3 {
    color: var(--usa-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer a {
    color: var(--usa-silver);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

/* American flag-inspired elements */
.usa-flag-element {
    position: relative;
    background: 
        repeating-linear-gradient(
            0deg,
            var(--usa-red) 0px,
            var(--usa-red) 4px,
            var(--usa-white) 4px,
            var(--usa-white) 8px
        );
}

.usa-flag-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 50%;
    background: var(--usa-liberty-blue);
}

/* Professional form styling */
.tax-form {
    position: relative;
}

.tax-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-patriotic);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tax-form:focus-within::before {
    opacity: 0.1;
}

/* Enhanced result highlighting */
.result-row.highlight {
    background: var(--gradient-liberty);
    position: relative;
    overflow: hidden;
}

.result-row.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--usa-gold);
}

/* Accessibility enhancements */
.form-group input:focus,
.form-group select:focus {
    outline: 3px solid rgba(0, 47, 108, 0.3);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --usa-liberty-blue: #000080;
        --usa-red: #FF0000;
        --text-dark: #000000;
        --border-color: #000000;
    }
    
    .input-panel,
    .results-panel {
        border-width: 3px;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .header::before,
    .input-panel::before,
    .results-panel::before {
        display: none;
    }
}

/* Print styles */
@media print {
    .top-navbar,
    .nav-tabs,
    .form-actions,
    .chart-container {
        display: none !important;
    }
    
    .header {
        background: var(--usa-white) !important;
        color: var(--text-dark) !important;
        border-bottom: 3px solid var(--usa-liberty-blue);
    }
    
    .input-panel,
    .results-panel {
        border: 2px solid var(--text-dark) !important;
        box-shadow: none !important;
        background: var(--usa-white) !important;
        page-break-inside: avoid;
    }
    
    .result-card {
        border: 1px solid var(--text-dark) !important;
        margin-bottom: var(--space-4) !important;
    }
    
    .result-row.highlight {
        background: var(--gov-light-gray) !important;
        color: var(--text-dark) !important;
    }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1a202c;
        --background-alt: #2d3748;
        --card-bg: #2d3748;
        --text-dark: #f7fafc;
        --text-light: #a0aec0;
        --border-color: #4a5568;
        --border-light: #4a5568;
    }
    
    .header {
        background: linear-gradient(135deg, var(--usa-navy) 0%, #000814 100%);
    }
    
    .input-panel,
    .results-panel {
        background: var(--card-bg);
        border-color: var(--border-color);
    }
    
    .result-card {
        background: var(--background-alt);
        border-color: var(--border-color);
    }
}

/* Animation keyframes for enhanced UX */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Apply animations to key elements */
.calculator-section.active .input-panel {
    animation: slideInFromLeft 0.5s ease-out;
}

.calculator-section.active .results-panel {
    animation: slideInFromRight 0.5s ease-out;
}

.results-container:not(.hidden) {
    animation: fadeInUp 0.4s ease-out;
}

/* USA-specific utility classes */
.text-usa-blue {
    color: var(--usa-liberty-blue);
}

.text-usa-red {
    color: var(--usa-red);
}

.bg-usa-blue {
    background-color: var(--usa-liberty-blue);
    color: var(--usa-white);
}

.bg-usa-red {
    background-color: var(--usa-red);
    color: var(--usa-white);
}

.border-usa-blue {
    border-color: var(--usa-liberty-blue);
}

.border-usa-red {
    border-color: var(--usa-red);
}

/* Calculator-Specific Styles */

/* Calculator Header */
.calculator-header {
    background: var(--gradient-liberty);
    color: white;
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.calculator-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 0l6 18h18l-14 11 6 18-16-12-16 12 6-18-14-11h18z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 0;
}

.calculator-header .container {
    position: relative;
    z-index: 1;
}

.calculator-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.header-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--usa-gold);
    color: var(--usa-navy);
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

/* Calculator Navigation */
.calculator-nav {
    background: white;
    border-bottom: 1px solid var(--form-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.nav-btn {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--tab-hover);
    color: var(--tab-active);
}

.nav-btn.active {
    color: var(--tab-active);
    border-bottom-color: var(--tab-active);
    background: var(--tab-hover);
}

/* Calculator Container */
.calculator-container {
    background: var(--calculator-bg);
    padding: 3rem 0;
    min-height: 60vh;
}

.calculator-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.calculator-section.active {
    display: block;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.calculator-form,
.calculator-results {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Form Styles */
.calculator-form {
    padding: 2rem;
}

.tax-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    border-bottom: 1px solid var(--form-border);
    padding-bottom: 2rem;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gov-gray);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--usa-liberty-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gov-gray);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--form-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--tab-active);
    box-shadow: 0 0 0 3px rgba(0, 47, 108, 0.1);
}

.form-help {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Results Panel */
.calculator-results {
    position: sticky;
    top: 200px;
}

.results-panel {
    min-height: 400px;
    padding: 2rem;
}

.results-placeholder {
    text-align: center;
    color: var(--gray-500);
    padding: 3rem 2rem;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.results-placeholder h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gov-gray);
}

.results-placeholder p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Disclaimer Section */
.disclaimer-section {
    background: var(--gov-light-gray);
    padding: 3rem 0;
    border-top: 1px solid var(--form-border);
}

.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-content h3 {
    font-size: 1.25rem;
    color: var(--gov-red);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-text p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--gov-gray);
}

.disclaimer-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.disclaimer-point {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.disclaimer-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.disclaimer-point div {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gov-gray);
}

.disclaimer-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Reference Section */
.reference-section {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid var(--form-border);
}

.reference-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--gov-gray);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reference-card {
    background: var(--gov-light-gray);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--form-border);
}

.reference-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gov-gray);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--form-border);
    padding-bottom: 0.5rem;
}

.reference-card ul {
    list-style: none;
    padding: 0;
}

.reference-card li {
    margin-bottom: 0.5rem;
}

.reference-card a {
    color: var(--tab-active);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.reference-card a:hover {
    color: var(--usa-red);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Calculator */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calculator-results {
        position: static;
    }
}

@media (max-width: 768px) {
    .calculator-header {
        padding: 3rem 0 2rem;
    }

    .calculator-header h1 {
        font-size: 2rem;
    }

    .nav-tabs {
        padding: 0;
    }

    .nav-btn {
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .calculator-container {
        padding: 2rem 0;
    }

    .calculator-form,
    .calculator-results {
        border-radius: 0.5rem;
    }

    .calculator-form {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .disclaimer-points {
        grid-template-columns: 1fr;
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calculator-header h1 {
        font-size: 1.75rem;
    }

    .header-badges {
        gap: 0.5rem;
    }

    .badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .nav-btn {
        min-width: 100px;
        padding: 0.5rem 0.75rem;
    }

    .results-panel {
        padding: 1.5rem;
        min-height: 300px;
    }

    .placeholder-icon {
        font-size: 2.5rem;
    }
}
