/* Age Calculator Styles */
.age-calculator-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

.age-calc-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.age-calc-title {
    text-align: center;
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.age-calc-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 35px;
}

.age-calc-form {
    margin-bottom: 30px;
}

.age-input-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.age-input-group {
    margin-bottom: 25px;
}

.age-input-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.age-date-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.age-date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.age-calc-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.age-calc-btn,
.age-reset-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.age-calc-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.age-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.age-reset-btn {
    background: #f0f0f0;
    color: #555;
}

.age-reset-btn:hover {
    background: #e0e0e0;
}

.age-results {
    margin-top: 40px;
}

.age-main-result {
    text-align: center;
    margin-bottom: 35px;
}

.age-result-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.age-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.age-value {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.age-label {
    font-size: 18px;
    opacity: 0.95;
}

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

.age-stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.age-stat-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.age-next-birthday {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 35px;
    color: white;
}

.age-next-birthday h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
}

.birthday-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.birthday-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 18px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.birthday-label {
    font-weight: 600;
    opacity: 0.95;
}

.birthday-value {
    font-weight: 700;
    font-size: 16px;
}

.age-additional-stats {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 35px;
}

.age-additional-stats h3 {
    color: #333;
    margin: 0 0 25px 0;
    font-size: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.stat-item:hover {
    border-color: #764ba2;
    transform: translateY(-3px);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.age-birth-info {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
}

.age-birth-info h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
}

.birth-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.birth-info-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    font-size: 32px;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.info-value {
    font-size: 18px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .age-calc-container {
        padding: 25px;
    }
    
    .age-calc-title {
        font-size: 26px;
    }
    
    .age-input-section {
        padding: 20px;
    }
    
    .age-calc-actions {
        flex-direction: column;
    }
    
    .age-value {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .birth-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .age-calculator-wrapper {
        padding: 10px;
    }
    
    .age-calc-container {
        padding: 20px;
    }
    
    .age-breakdown-grid {
        grid-template-columns: 1fr;
    }
}