.age-calculator-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.age-calculator {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.age-calculator-header {
    background: linear-gradient(to right, #4776E6, #8E54E9);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.age-calculator-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.age-calculator-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.age-calculator-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.input-group input {
    padding: 15px;
    border: 2px solid #e1e5ee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: #4776E6;
    box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.2);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.age-calculate-btn,
.age-reset-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.age-calculate-btn {
    background: linear-gradient(to right, #4776E6, #8E54E9);
    color: white;
    flex: 1;
    max-width: 250px;
    justify-content: center;
}

.age-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(71, 118, 230, 0.4);
}

.age-reset-btn {
    background: #f8f9fa;
    color: #333;
    flex: 1;
    max-width: 250px;
    justify-content: center;
}

.age-reset-btn:hover {
    background: #e9ecef;
}

.result-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    display: none;
}

.result-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.result-section h2 {
    color: #4776E6;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.age-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.age-box {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.age-box:hover {
    transform: translateY(-5px);
}

.age-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4776E6;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.age-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.additional-info {
    text-align: left;
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.additional-info h3 {
    color: #4776E6;
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.info-list {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
}

.info-value {
    color: #4776E6;
    font-weight: 600;
}

.loader {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loader.active {
    display: block;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4776E6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-message {
    background: #ffe6e6;
    border: 1px solid #ffcccc;
    border-radius: 10px;
    padding: 15px;
    color: #d63031;
    text-align: center;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .age-calculator {
        border-radius: 15px;
    }
    
    .age-calculator-header h1 {
        font-size: 2rem;
    }
    
    .age-calculator-body {
        padding: 20px;
    }
    
    .input-section {
        grid-template-columns: 1fr;
    }
    
    .age-results {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-list {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .age-calculate-btn,
    .age-reset-btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .age-calculator-container {
        padding: 10px;
    }
    
    .age-calculator-header {
        padding: 20px;
    }
    
    .age-calculator-header h1 {
        font-size: 1.8rem;
    }
    
    .age-calculator-body {
        padding: 15px;
        gap: 20px;
    }
    
    .age-results {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .age-box {
        padding: 20px 15px;
    }
    
    .age-value {
        font-size: 2rem;
    }
    
    .additional-info {
        padding: 20px;
    }
}
/* Dashicons fallback */
.age-calculator-header h1 .dashicons,
.age-calculator-header h1 .fa-calculator {
    margin-right: 10px;
}

.input-group label .dashicons,
.input-group label .far {
    margin-right: 8px;
}

.button-group .dashicons,
.button-group .fas {
    margin-right: 8px;
}

.result-section h2 .dashicons,
.result-section h2 .fas {
    margin-right: 10px;
}

.additional-info h3 .dashicons,
.additional-info h3 .fas {
    margin-right: 8px;
}