.age-calculator-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.age-calculator-title {
    text-align: center;
    color: #2ecc71;
    font-weight: bold;
    font-size: 32px;
    margin-bottom: 20px;
}

.age-calculator-input-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.date-input {
    flex: 1;
    min-width: 120px;
}

.date-input label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.date-input select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

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

.age-calculator-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.age-calculator-buttons button {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calculate-btn {
    background: #3498db;
    color: white;
}

.calculate-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.clear-btn {
    background: #e74c3c;
    color: white;
}

.clear-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.total-age {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border-radius: 15px;
    color: white;
}

.total-age-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.total-age-value {
    font-size: 36px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.age-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.age-value {
    font-size: 28px;
}

.age-text {
    font-size: 16px;
    font-weight: 500;
}

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

.result-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.result-box:hover {
    transform: translateY(-5px);
}

.result-label {
    color: #3498db;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.error {
    color: #e74c3c;
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
    display: none;
}

@media (max-width: 768px) {
    .age-calculator-title {
        font-size: 26px;
    }
    
    .age-calculator-input-section {
        flex-direction: column;
    }
    
    .date-input {
        width: 100%;
    }
    
    .age-calculator-buttons {
        flex-direction: column;
    }
    
    .total-age-value {
        flex-direction: column;
        gap: 15px;
    }
    
    .age-calculator-results {
        grid-template-columns: repeat(2, 1fr);
    }
}