/* 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: #e74c3c;
}

/* 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.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-group label i {
    margin-right: 8px;
    color: #3498db;
}

.datetime-picker {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.datetime-picker:focus {
    border-color: #3498db;
    outline: none;
    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;
}

.calculate-btn:hover {
    background-color: #2980b9;
}

.calculate-btn i {
    margin-right: 8px;
}

/* Result Styles */
.age-result {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    min-height: 120px;
}

.result-placeholder {
    text-align: center;
    color: #7f8c8d;
    padding: 20px 0;
}

.result-success h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.age-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.age-details li {
    flex-basis: 30%;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.age-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.age-label {
    font-size: 14px;
    color: #7f8c8d;
}

.current-time {
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 15px;
}

.current-time i {
    margin-right: 5px;
}

/* Messages */
.loading-message, .error-message {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    font-weight: 600;
}

.loading-message i {
    margin-right: 10px;
}

.error-message i {
    margin-right: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .age-calculator-container {
        padding: 15px;
    }
    
    .age-details li {
        flex-basis: 48%;
    }
}

@media (max-width: 480px) {
    .age-details li {
        flex-basis: 100%;
    }
    
    .age-value {
        font-size: 20px;
    }
}