/* Main Container */
.age-calculator-container {
    max-width: 500px;
    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: 5px;
    font-weight: 600;
    color: #34495e;
}

.form-group label i {
    margin-right: 8px;
    color: #3498db;
    width: 20px;
    text-align: center;
}

.birth-date-picker,
.birth-time-picker {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.birth-date-picker:focus,
.birth-time-picker:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* 3D Button Styles */
.calculate-btn {
    width: 100%;
    padding: 15px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 0 #27ae60,
                0 8px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calculate-btn:hover {
    background-color: #2ecc71;
    transform: translateY(2px);
    box-shadow: 0 3px 0 #27ae60,
                0 5px 8px rgba(0, 0, 0, 0.2);
}

.calculate-btn:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #27ae60,
                0 2px 5px rgba(0, 0, 0, 0.2);
}

.calculate-btn i {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.calculate-btn:hover i {
    transform: scale(1.1);
}

/* Add a subtle shine effect */
.calculate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
}

/* Add a pressed effect when clicking */
.calculate-btn:active::after {
    height: 40%;
}

/* Result Styles */
.age-result {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    min-height: 100px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-placeholder {
    color: #7f8c8d;
    font-style: italic;
}

.result-success h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.result-success p {
    margin: 5px 0;
    font-size: 16px;
    color: #34495e;
}

.result-error {
    color: #e74c3c;
    font-weight: 600;
}

.loading {
    color: #3498db;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 600px) {
    .age-calculator-container {
        padding: 15px;
    }
    
    .age-calculator-form,
    .age-result {
        padding: 15px;
    }
}

/* Datepicker Overrides */
.ui-datepicker {
    font-family: 'Arial', sans-serif;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.ui-datepicker-header {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0;
}

.ui-datepicker-title select {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 2px;
}

.ui-datepicker-calendar th {
    color: #3498db;
}

.ui-datepicker-calendar td a {
    text-align: center;
    color: #333;
}

.ui-datepicker-calendar td a:hover {
    background: #3498db;
    color: white;
}

.ui-datepicker-current-day a {
    background: #2ecc71;
    color: white !important;
}