* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    text-align: left; /* Changed from center */
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center; /* Keep header centered */
}

.calc-list a {
    display: block;
    padding: 1rem;
    background: #ecf0f1;
    border-radius: 15px;
    text-decoration: none;
    color: #2980b9;
    font-weight: 600;
    margin: 0.5rem 0;
}

.calc-list a:hover {
    background: #3498db;
    color: #fff;
}

.input-group {
    margin: 1rem 0;
    text-align: left;
}

label {
    font-weight: 500;
    color: #34495e;
}

input[type="number"], select {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    background: #ecf0f1;
}

/* Custom Dropdown Styling */
select {
    appearance: none;
    background: #ecf0f1 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" fill="%2334495e"><polygon points="0,0 10,0 5,5"/></svg>') no-repeat right 0.8rem center;
    padding-right: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

select:hover {
    background-color: #dfe6e9;
}

select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

input[type="radio"] {
    margin-right: 0.5rem;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 1.5rem;
}

button:hover {
    background: #2980b9;
}

#results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    display: none;
}

/* Tab Styles */
.tabs {
    margin-top: 1.5rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    background: #ecf0f1;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    color: #34495e;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: #3498db;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.tab-content p {
    line-height: 1.7;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.affiliate-section a {
    color: #3498db;
}