/* Body Fat Calculator Styles */
.body-fat-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section */
.calc-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.calc-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.calc-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.benefit {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.benefit-icon {
    font-size: 2rem;
}

.benefit-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Calculator Section */
.calc-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.calc-inputs {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.calc-inputs h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

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

.input-group small {
    display: block;
    color: #7f8c8d;
    margin-top: 5px;
    font-size: 0.9rem;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
}

.calc-btn {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

/* Results Section */
.calc-results {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-main {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
}

.result-category {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.chart-container {
    margin: 30px 0;
    height: 300px;
    position: relative;
}

/* Expert Insights Section */
.expert-insights {
    background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
    border: 2px solid #d1c4e9;
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.expert-insights h3 {
    color: #5e35b1;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.insight-content p {
    color: #2c3e50;
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 1.05rem;
    text-align: justify;
}

.insight-content p:last-child {
    margin-bottom: 0;
}

/* Educational Content */
.calc-education {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.education-tabs {
    display: flex;
    background: #f1f3f4;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 15px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.tab-content h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Understanding Tab */
.understanding-intro {
    margin-bottom: 30px;
}

.understanding-intro p {
    color: #34495e;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.understanding-content {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

.info-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.info-section h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-section p {
    color: #34495e;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Call to Action */
.calc-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.calc-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.cta-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cta-btn.primary {
    background: white;
    color: #667eea;
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* Disclaimer */
.calc-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.calc-disclaimer p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calc-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calc-hero h2 {
        font-size: 2rem;
    }

    .hero-benefits {
        flex-direction: column;
        gap: 20px;
    }

    .education-tabs {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
