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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
}

/* Year-specific subtle differentiation */
body.year-2026 .container {
    border: 1px solid #e3e7ff; /* slightly cooler border for 2026 */
}
body.year-2025 .container {
    border: 1px solid #e9ecef; /* match neutral tone for 2025 */
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

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

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slight gradient shift per year for the title */
body.year-2026 .header h1 {
    background: linear-gradient(45deg, #5f9eea, #6f60c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.year-2025 .header h1 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.year-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 2.5rem;
    line-height: 1;
}

.year-option {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.year-option:hover {
    color: #764ba2;
}

.year-option.selected,
.year-option[aria-current="page"] {
    color: #2c3e50;
}

.year-switch .separator {
    color: #b0b8c1;
    font-weight: 600;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.input-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

input[type="number"] {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.results-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.tax-breakdown {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* 2026 tax box slight hue shift */
body.year-2026 .tax-breakdown {
    background: linear-gradient(135deg, #5f9eea 0%, #6f60c7 100%);
    box-shadow: 0 10px 30px rgba(95, 158, 234, 0.3);
}
body.year-2025 .tax-breakdown {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tax-breakdown h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.tax-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tax-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

#taxChart {
    width: 100%;
    height: 300px;
}

.info-box {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    color: #0c5460;
}

.info-box h4 {
    margin-bottom: 10px;
    color: #0a58ca;
}

.info-box ul {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 5px;
}

.effective-rate {
    text-align: center;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.effective-rate h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.effective-rate .rate {
    font-size: 3rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .results-section {
        grid-template-columns: 1fr;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    .year-switch { font-size: 2rem; }
    
    .year-option {
        font-size: 0.6em;
    }
    
    .container {
        padding: 20px;
    }
}

.slider-container {
    margin: 20px 0;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    margin: 10px 0;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.social-share {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.social-share h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.facebook-button {
    background: #1877f2;
}

.linkedin-button {
    background: #0a66c2;
}

.share-button i {
    margin-right: 8px;
    font-size: 1.2rem;
}



