* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding-top: 40px;
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.input-section h2,
.results-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5em;
}

/* Input Group */
.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

input[type="number"] {
    width: 100%;
    padding: 15px;
    font-size: 1.3em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s;
    font-weight: 600;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Salary Slider */
.salary-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #667eea, #764ba2);
    outline: none;
    margin: 15px 0 5px 0;
    cursor: pointer;
}

.salary-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 3px solid #667eea;
}

.salary-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 3px solid #667eea;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Pension Buttons */
.pension-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.pension-btn,
.pension-btn-reverse {
    padding: 12px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1em;
}

.pension-btn:hover,
.pension-btn-reverse:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.pension-btn.active,
.pension-btn-reverse.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Main Result */
.main-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

.result-label {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-percent {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    background: #f8f9ff;
    border-radius: 15px;
    padding: 20px;
}

/* Breakdown Table */
.breakdown-table {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.breakdown-table h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.breakdown-table table {
    width: 100%;
    border-collapse: collapse;
}

.breakdown-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table td {
    padding: 15px 10px;
    font-size: 1.05em;
}

.breakdown-table .label {
    color: #555;
}

.breakdown-table .value {
    text-align: right;
    font-weight: 600;
    font-size: 1.1em;
}

.breakdown-table .positive {
    color: #27ae60;
}

.breakdown-table .negative {
    color: #e74c3c;
}

.breakdown-table .indent {
    padding-left: 30px;
    font-size: 0.95em;
}

.breakdown-table .separator td {
    font-weight: 600;
    color: #667eea;
    padding-top: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.breakdown-table .total {
    background: #f8f9ff;
    font-size: 1.1em;
}

.breakdown-table .total td {
    padding: 20px 10px;
}

.employer-costs {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.employer-costs h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Info Box */
.info-box {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.info-box p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

/* Cost Breakdown */
.cost-breakdown {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.05em;
}

.cost-item:last-child {
    border-bottom: none;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid #667eea;
    font-size: 1.2em;
}

/* Comparison Section */
.comparison-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.comparison-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.comparison-section > p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table tbody tr:hover {
    background: #f8f9ff;
}

.comparison-table .positive {
    color: #27ae60;
    font-weight: 600;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.badge.green {
    background: #d4edda;
    color: #27ae60;
}

/* Info Section */
.info-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.info-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.info-card h3 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 1.3em;
}

.info-card p {
    color: #555;
    line-height: 1.8;
}

.example-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #667eea;
}

.example-box h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.example-box ol {
    list-style-position: inside;
    font-size: 1.1em;
    line-height: 2;
}

.example-box li {
    margin-bottom: 8px;
    color: #333;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    margin-top: 50px;
    padding: 30px;
    opacity: 0.95;
}

footer p {
    margin: 8px 0;
}

.disclaimer {
    font-size: 0.95em;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 968px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        padding-top: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .calculator-grid,
    .breakdown-table,
    .comparison-section,
    .info-section {
        padding: 25px;
    }
    
    .result-value {
        font-size: 2.2em;
    }
    
    .comparison-table {
        font-size: 0.9em;
    }
    
    .pension-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .result-value {
        font-size: 1.8em;
    }
}
    .chart-container {
        height: 250px;
    }
/* Share Section */
.share-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.share-section h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.share-section > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.copy {
    background: #667eea;
}

.copy-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    color: #27ae60;
    border-radius: 10px;
    font-weight: 600;
}

.copy-message.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}