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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.description {
    text-align: center;
    color: #666;
    margin-bottom: 1rem;
}

.calculator {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

button {
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2980b9;
}

.hidden {
    display: none !important;
}

#results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

#results h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.result-item {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.input-type-selector {
    margin-bottom: 2rem;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

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

.radio-group label {
    display: inline;
    margin: 0;
    cursor: pointer;
}

.results-section {
    margin-bottom: 2rem;
}

.results-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.result-item h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.result-item p {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.highlight {
    background-color: #e8f4f8;
}

@media (max-width: 600px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}
