/* Age Calculator Styles */
.age-calculator-container {
    max-width: 600px;
    margin: 20px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.age-calculator-header h3 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.age-calculator-header i {
    margin-right: 10px;
    color: #ffd700;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group i {
    color: #667eea;
    margin-right: 8px;
}

.birth-datetime-picker {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.birth-datetime-picker:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.time-selection {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.time-inputs select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

.time-inputs span {
    font-weight: bold;
    color: #333;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn i {
    margin-right: 8px;
}

.age-result {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-header h4 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.result-header i {
    color: #ff6b6b;
    margin-right: 8px;
}

.result-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.age-unit {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.age-unit:hover {
    transform: scale(1.05);
}

.age-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.age-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.age-calculator-footer i {
    margin-right: 5px;
    color: #ffd700;
}

/* Loading state */
.calculate-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.calculate-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.age-error {
    background: #ff6b6b;
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .age-calculator-container {
        margin: 10px;
        padding: 20px;
    }
    
    .result-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .age-calculator-form,
    .age-result {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .result-content {
        grid-template-columns: 1fr;
    }
    
    .age-calculator-header h3 {
        font-size: 20px;
    }
    
    .calculate-btn {
        padding: 12px;
        font-size: 16px;
    }
}

/* jQuery UI Datepicker customization */
.ui-datepicker {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
}

.ui-datepicker-calendar th {
    background: #f8f9fa;
}

.ui-datepicker-calendar td a {
    text-align: center;
    border-radius: 4px;
}

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

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