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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 20px;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.simulator-panel, .results-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.results-panel {
    background: rgba(255,255,255,0.95);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

select, input[type="range"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}
input[type="range"] {
    padding: 0; /* Range inputs don't need padding */
}

select:focus {
    outline: none;
    border-color: #0077b5;
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
}

.salary-result {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
    border-radius: 15px;
    color: white;
    margin-bottom: 25px;
}

.salary-amount {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.salary-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detail-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #0077b5;
}

.detail-label {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.comparison-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.comparison-section h2, .simulator-panel h2, .results-panel h2 {
    color: #0077b5;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.comparison-card {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.footer {
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0.8;
}

.trend-chart {
    background: #f7f9fc;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.placeholder, .error-message {
    padding: 2rem;
    text-align: center;
    color: #777;
    font-size: 1.1rem;
    border: 2px dashed #ddd;
    border-radius: 15px;
}
.error-message {
    color: #d9534f;
    border-color: #f5c6cb;
    background-color: #f8d7da;
}

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

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #0077b5;
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 2.2em;
    }
    .salary-details {
        grid-template-columns: 1fr;
    }
}
