/* Main Container */
.age-calculator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.age-calculator-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.age-calculator-container h2 i {
    margin-right: 10px;
    color: #3498db;
}

/* Form Styles */
.age-calculator-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.form-group label i {
    margin-right: 8px;
    color: #3498db;
    width: 20px;
    text-align: center;
}

.datepicker, .timepicker {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f8f9fa;
    cursor: pointer;
}

.datepicker:focus, .timepicker:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Button Styles */
.calculate-btn {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.calculate-btn:hover {
    background-color: #2980b9;
}

.calculate-btn i {
    margin-right: 8px;
}

/* Result Styles */
.age-result {
    display: none;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result-container h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
}

.result-container h3 i {
    margin-right: 10px;
    color: #3498db;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.result-item {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.result-label {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .age-calculator-container {
        padding: 15px;
    }
}

@media (max-width: 400px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}