* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #4fc3f7;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.age-calculator {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.age-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #4fc3f7;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
}
.form-group select:focus {
    outline: none;
    border-color: #4fc3f7;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 195, 247, 0.3);
}

.result {
    width: 100%;
    max-width: 400px;
    transition: all 0.5s ease;
}

.result.hidden {
    display: none;
}

.result-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    margin: 0 auto;
    max-width: 400px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.result-header i {
    font-size: 2rem;
    color: #4fc3f7;
}

.result-header h2 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.age-info {
    font-size: 1.4rem;
    color: #1976d2;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.age-number {
    font-size: 2.8rem;
    color: #764ba2;
    font-weight: 700;
    margin-right: 6px;
}

.reference-table table {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    margin-top: 10px;
}
.reference-table th, .reference-table td {
    padding: 10px 8px;
    font-size: 1rem;
}
.reference-table th {
    background: #e3e8f0;
    color: #333;
    font-weight: 600;
}
.reference-table tr:nth-child(even) td {
    background: #f0f4fa;
}
.reference-table tr td {
    color: #444;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    .logo h1 {
        font-size: 1.7rem;
    }
    .age-form {
        padding: 18px;
    }
    .result-card {
        padding: 18px;
    }
    .age-info {
        font-size: 1.1rem;
    }
    .age-number {
        font-size: 1.5rem;
    }
} 