/* Tool Page Specific Styles */
@import url('../css/index.css');

.tool-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Tool Banner - Modern Left-Right Layout */
.tool-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.tool-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Banner Content (Left Side) */
.banner-content {
    padding-right: 2rem;
}

.tool-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tool-category i {
    font-size: 1rem;
}

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.banner-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.banner-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Banner Visual (Right Side) */
.banner-visual {
    position: relative;
}

.visual-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* 添加装饰性背景圆圈 */
.visual-wrapper::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.visual-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: brightness(1.05) contrast(1.05);
}

.visual-wrapper:hover .banner-image {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.1) contrast(1.1);
}

.visual-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.floating-stat {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: float 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.floating-stat:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.floating-stat:nth-child(1) {
    top: 8%;
    left: 3px;
    animation-delay: 0s;
}

.floating-stat.stat-2 {
    bottom: 8%;
    right: 3px;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.floating-stat:hover .stat-icon {
    transform: rotate(10deg) scale(1.1);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Old Tool Header - Remove */
.tool-header {
    display: none;
}

.tool-title {
    display: none;
}

.tool-intro {
    display: none;
}

.tool-content {
    padding: 4rem 0;
}

/* Tool Layout - Vertical Stack */
.tool-layout-vertical {
    /* max-width: 900px; */
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Old tool-grid - Keep for backward compatibility but override */
.tool-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calculator-panel {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calculator-panel h3 i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.unit-selector {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.unit-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.unit-selector input[type="radio"] {
    width: auto;
}

.btn-calculate {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-calculate:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.result-panel {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-panel h3 i {
    color: var(--primary-color);
}

.result-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.result-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.result-category {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.result-category h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.result-category p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.category-normal {
    border-left: 4px solid var(--secondary-color);
}

.category-warning {
    border-left: 4px solid var(--accent-color);
}

.category-danger {
    border-left: 4px solid var(--danger-color);
}

.bmi-ranges {
    margin-top: 1.5rem;
}

.bmi-range {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    background: var(--light-bg);
}

.bmi-range.active {
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
}

.info-section {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.info-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-primary);
}

.info-section h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.formula-box {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.limitation-box {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.limitation-box h4 {
    color: var(--accent-color);
    margin-top: 0;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.quick-link-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.chart-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.fa-solid,
.fas {
    float: inline-start;
    margin: 10px;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .tool-grid {
        max-width: 100%;
    }

    .tool-layout-vertical {
        max-width: 100%;
    }

    .tool-title {
        font-size: 2rem;
    }

    .result-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {

    .calculator-panel,
    .result-panel,
    .info-section {
        padding: 1.5rem;
    }

    .tool-title {
        font-size: 1.75rem;
    }

    .result-value {
        font-size: 2rem;
    }

    .quick-links {
        flex-direction: column;
    }

    .quick-link-btn {
        width: 100%;
        justify-content: center;
    }

    /* Banner Responsive */
    .tool-banner {
        padding: 3rem 0;
    }

    .banner-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .banner-content {
        padding-right: 0;
        text-align: center;
    }

    .tool-category {
        justify-content: center;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-description {
        font-size: 1rem;
    }

    .banner-features {
        align-items: center;
    }

    .banner-cta {
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .floating-stat {
        display: none;
    }
}

/* ================================
   Calorie Planner Specific Styles
   ================================ */

.macro-breakdown {
    margin-top: 2rem;
}

.macro-breakdown h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.macro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.macro-card {
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.macro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.macro-card.carbs {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.macro-card.protein {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.macro-card.fat {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.macro-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
}

.carbs .macro-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.protein .macro-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.fat .macro-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.macro-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.macro-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.macro-percent {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.macro-calories {
    font-size: 0.875rem;
    color: var(--text-light);
}

.meal-suggestions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.meal-suggestions h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.meal-item {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.meal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.meal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.meal-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.meal-header span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.meal-calories {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* ================================
   Calorie Planner Specific Styles
   ================================ */

.macro-split {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.macro-split h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.macro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.macro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.macro-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.macro-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.macro-card.protein i {
    color: #ef4444;
}

.macro-card.carbs i {
    color: #f59e0b;
}

.macro-card.fats i {
    color: #10b981;
}

.macro-name {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.macro-grams {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.macro-percent {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.macro-calories {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.meal-plan {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.meal-plan h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.meal-grid {
    display: grid;
    gap: 1rem;
}

.meal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.meal-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.meal-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.meal-name i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.meal-calories {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ================================
   Weight Predictor Specific Styles
   ================================ */

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

.summary-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.summary-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.summary-item strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.summary-item span {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
}

.timeline-view {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.timeline-view h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.timeline-list {
    display: grid;
    gap: 0.75rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transform: translateX(4px);
}

.timeline-week {
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-weight {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.timeline-change {
    color: var(--text-light);
    font-size: 0.875rem;
}

.prediction-tips ul {
    list-style: none;
    padding: 0;
}

.prediction-tips li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.prediction-tips li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .timeline-week {
        font-size: 0.875rem;
    }
}

/* ================================
   Heart Rate Calculator Specific Styles
   ================================ */

.hr-zones {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.hr-zones h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.zones-list {
    display: grid;
    gap: 1rem;
}

.hr-zone-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.hr-zone-item:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateX(4px);
}

.zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.zone-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.zone-title i {
    font-size: 1.25rem;
}

.zone-range {
    font-size: 1.125rem;
    font-weight: 700;
}

.zone-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.zone-benefits {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.zone-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.zone-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.hr-recommendations {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.hr-recommendations h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0.75rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.recommendation-item i {
    font-size: 1.25rem;
}

/* ================================
   Blood Pressure Specific Styles
   ================================ */

.bp-ranges {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.bp-ranges h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.bp-category-list {
    display: grid;
    gap: 0.75rem;
}

.bp-category {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.bp-category:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bp-category.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.bp-category-name {
    font-weight: 600;
    color: var(--text-dark);
}

.bp-category-range {
    color: var(--text-light);
    font-size: 0.875rem;
}

.bp-tracker {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.bp-tracker h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.bp-log-item {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 8px;
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .bp-category {
        grid-template-columns: 1fr;
    }
}

/* ================================
   WHtR Calculator Specific Styles
   ================================ */

.whtr-ranges {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.whtr-ranges h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.whtr-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    margin: 0.5rem 0;
    background: var(--white);
    border-radius: 8px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.whtr-range:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.whtr-range.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    font-weight: 600;
}

.whtr-range span:first-child {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.whtr-range span:last-child {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.whtr-rule {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.rule-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rule-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.rule-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.category-underweight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border-left: 4px solid #3b82f6;
}

.category-healthy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-left: 4px solid #10b981;
}

.category-action {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-left: 4px solid #f59e0b;
}

.category-increased {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
    border-left: 4px solid #f97316;
}

/* ================================
   WHR Calculator Specific Styles
   ================================ */

.whr-ranges {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.whr-ranges h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.whr-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    margin: 0.5rem 0;
    background: var(--white);
    border-radius: 8px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.whr-range:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.whr-range.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    font-weight: 600;
}

.whr-range span:first-child {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.whr-range span:last-child {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.category-low {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-left: 4px solid #10b981;
}

.category-moderate {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-left: 4px solid #f59e0b;
}

.category-high {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-left: 4px solid #ef4444;
}

/* ================================
   Ideal Weight Calculator Specific Styles
   ================================ */

.weight-range-display {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 1rem 0;
}

.weight-range-display strong {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.formula-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.formula-results h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.formula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.formula-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.formula-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
}

.formula-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.formula-name i {
    color: var(--primary-color);
    font-size: 1rem;
}

.formula-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* ================================
   Body Fat Calculator Specific Styles
   ================================ */

.bodyfat-ranges {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.bodyfat-ranges h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.ranges-gender {
    margin-bottom: 1.5rem;
}

.ranges-gender strong {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.bf-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    margin: 0.5rem 0;
    background: var(--white);
    border-radius: 8px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.bf-range:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.bf-range.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    font-weight: 600;
}

.bf-range span:first-child {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.bf-range span:last-child {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.category-essential {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-left: 4px solid #ef4444;
}

.category-athletes {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border-left: 4px solid #3b82f6;
}

.category-fitness {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-left: 4px solid #10b981;
}

.category-average {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-left: 4px solid #f59e0b;
}

.category-obese {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-left: 4px solid #ef4444;
}

.result-sublabel {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.bmr-value {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0.75rem 0;
}

.category-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.tdee-goals {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.tdee-goals h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.goal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.goal-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.goal-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.goal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.goal-icon.loss {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.goal-icon.maintain {
    background: linear-gradient(135deg, #10b981, #059669);
}

.goal-icon.gain {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.goal-content {
    flex: 1;
}

.goal-content strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.goal-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.goal-content p span {
    font-weight: 600;
    color: var(--primary-color);
}