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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

h1 {
    font-size: 2.5rem;
    color: #1976d2;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
}

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

h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

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

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

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #1976d2;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.calculate-btn:hover {
    background: #45a049;
}

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

.hidden {
    display: none;
}

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

.result-card {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border-left: 5px solid #4caf50;
}

.result-card h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2e7d32;
}

.result-unit {
    font-size: 1rem;
    color: #666;
}

.comparison-section {
    background: #e8f5e9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.comparison-section h3 {
    color: #2e7d32;
    margin-bottom: 20px;
}

.comparisons {
    display: grid;
    gap: 15px;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.icon {
    font-size: 2rem;
}

.comparison-item p {
    flex: 1;
    margin: 0;
}

.comparison-item span:not(.icon) {
    font-weight: bold;
    color: #2e7d32;
}

.tips-section {
    background: #e3f2fd;
    padding: 25px;
    border-radius: 10px;
}

.tips-section h3 {
    color: #1976d2;
    margin-bottom: 15px;
}

.tips-section ul {
    list-style: none;
}

.tips-section li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.tips-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .input-section, .results-section {
        padding: 20px;
    }
}