.age-calculator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.age-calculator-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px 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: 16px;
}

.form-group label i {
    color: #667eea;
    margin-right: 8px;
}

.birth-datetime {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    cursor: pointer;
}

.birth-datetime:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn i {
    margin-right: 10px;
}

.age-result {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
    text-align: center;
    margin-top: 20px;
}

.age-result h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
}

.age-result h3 i {
    margin-right: 10px;
}

.age-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.age-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.age-item .value {
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.error-message {
    background: #ffe6e6;
    color: #d63384;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid #ffcccc;
}

.error-message i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .age-calculator-container {
        padding: 20px;
        margin: 20px;
    }
    
    .age-calculator-form {
        padding: 20px;
    }
    
    .age-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .age-details {
        grid-template-columns: 1fr;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .birth-datetime {
        padding: 12px;
        font-size: 14px;
    }
    
    .calculate-btn {
        padding: 12px;
        font-size: 16px;
    }
}

/* jQuery UI Datepicker customization */
.ui-datepicker {
    background: white;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 15px;
}

.ui-datepicker-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
}

.ui-datepicker-prev, .ui-datepicker-next {
    cursor: pointer;
}

.ui-datepicker-title {
    font-weight: 600;
}

.ui-datepicker-calendar th {
    color: #667eea;
    font-weight: 600;
}

.ui-datepicker-calendar td a {
    text-align: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ui-datepicker-calendar td a:hover {
    background: #667eea;
    color: white;
}

.ui-datepicker-calendar .ui-state-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
}

/* Datepicker Fix */
.ui-datepicker {

    z-index: 9999 !important;
    font-size: 14px;
}

.ui-datepicker select.ui-datepicker-year {
    width: 50%;
    margin-left: 5px;
}

.ui-datepicker select.ui-datepicker-month {
    width: 45%;
}