/* Age Calculator Main Styles */
.age-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.age-calculator-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.age-calculator-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.age-calculator-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0;
}

.age-calculator-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.datetime-picker {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.datetime-picker:hover {
    border-color: #667eea;
    background: #fff;
}

.datetime-picker:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.hint {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-calculate, .btn-reset {
    flex: 1;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-calculate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-reset {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-reset:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-size: 1.1rem;
}

.loading-spinner i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.result-container {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.result-container h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.age-result {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.age-unit {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.age-unit:hover {
    transform: translateY(-5px);
}

.age-unit .value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
    line-height: 1;
}

.age-unit .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #c33;
    text-align: left;
    margin-top: 20px;
}

.age-calculator-footer {
    text-align: center;
    margin-top: 25px;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

.age-calculator-footer i {
    margin-right: 8px;
}

/* UI DatePicker Customization */
.ui-datepicker {
    background: white;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ui-datepicker-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px 8px 0 0;
}

.ui-datepicker-title select {
    background: white;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
}

.ui-datepicker-calendar .ui-state-default {
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    text-align: center;
    padding: 8px;
}

.ui-datepicker-calendar .ui-state-hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.ui-datepicker-calendar .ui-state-active {
    background: #764ba2;
    color: white;
    border-color: #764ba2;
}

/* Timepicker customization */
.ui-timepicker-div .ui-slider-handle {
    background: #667eea !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .age-calculator-container {
        padding: 20px;
        margin: 20px;
    }
    
    .age-calculator-header h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .age-calculator-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .age-result {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .age-unit .value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .age-result {
        grid-template-columns: 1fr;
    }
    
    .age-calculator-header h2 {
        font-size: 1.8rem;
    }
    
    .age-calculator-container {
        padding: 15px;
        margin: 10px;
    }
}