.age-container {
    max-width: 650px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 2rem;
}

.date-input {
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid var(--secondary-color);
    background-color: #f8f9fa;
    color: var(--text-dark);
    font-weight: bold;
    text-align: center;
}

.date-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
    outline: none;
}

.calculate-age-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 200px;
}

.calculate-age-btn:hover {
    background-color: #e91e63;
    border-color: #e91e63;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4);
}

.age-result-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--secondary-color);
}

.age-main-result {
    text-align: center;
    background-color: rgba(255, 20, 147, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.age-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.age-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.age-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.age-stat {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.age-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.detailed-breakdown {
    background-color: rgba(52, 144, 220, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.breakdown-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(52, 144, 220, 0.2);
    font-weight: 600;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.input-group {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
}

.input-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.quick-date-btn {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0.2rem;
    font-weight: bold;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quick-date-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 144, 220, 0.3);
}

.fun-facts {
    background-color: rgba(108, 117, 125, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.fun-fact-item {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.fun-fact-item:last-child {
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .age-container {
        padding: 1.5rem;
        max-width: 550px;
    }
    
    .age-number {
        font-size: 2.8rem;
    }
    
    .age-breakdown {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .calculate-age-btn {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .age-container {
        padding: 1rem;
    }
    
    .age-number {
        font-size: 2.2rem;
    }
    
    .age-breakdown {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        padding: 1rem;
    }
    
    .quick-date-btn {
        width: calc(50% - 0.4rem);
        margin: 0.2rem;
    }
}