/* Body Composition Analyzer Styles */

/* Hero Section */
.composition-hero {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 25%, #b794f6 50%, #d6bcfa 75%, #9f7aea 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.composition-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="composition-pattern" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="3" fill="rgba(255,255,255,0.1)"/><rect x="8" y="8" width="9" height="9" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1.5"/><circle cx="6" cy="6" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="19" cy="6" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="6" cy="19" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="19" cy="19" r="1.5" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23composition-pattern)"/></svg>');
    opacity: 0.7;
}

.composition-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
}

.composition-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.composition-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.composition-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    line-height: 1.6;
}

.composition-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.composition-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.composition-stat-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

/* Body Composition Analyzer Section */
.composition-analyzer {
    padding: 80px 0;
    background: #f8fafc;
}

/* Tabs */
.analyzer-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto 40px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.tab-btn.active {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
    color: white;
    box-shadow: 0 4px 15px rgba(159, 122, 234, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #f7fafc;
    color: #9f7aea;
}

.tab-btn i {
    font-size: 0.9rem;
}

/* Tab Content */
.tab-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calculator Tab */
.calculator-header,
.methods-header,
.tracker-header,
.insights-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-header h2,
.methods-header h2,
.tracker-header h2,
.insights-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calculator-header h2 i,
.methods-header h2 i,
.tracker-header h2 i,
.insights-header h2 i {
    color: #9f7aea;
}

.calculator-header p,
.methods-header p,
.tracker-header p,
.insights-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Input Section */
.input-section {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.method-selector,
.basic-info {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.method-selector:last-child,
.basic-info:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.method-selector h3,
.basic-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.method-selector h3 i,
.basic-info h3 i {
    color: #9f7aea;
}

/* Method Options */
.method-options {
    display: grid;
    gap: 12px;
}

.method-option {
    display: block;
    cursor: pointer;
    position: relative;
}

.method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    position: relative;
}

.method-option input[type="radio"]:checked + .option-content {
    border-color: #9f7aea;
    background: linear-gradient(135deg, #faf5ff, #e9d8fd);
}

.option-content:hover {
    border-color: #9f7aea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 122, 234, 0.15);
}

.option-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    font-size: 1rem;
}

.option-desc {
    color: #718096;
    font-size: 0.9rem;
}

/* Unit Selector */
.unit-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
}

.unit-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.unit-btn.active {
    background: white;
    color: #9f7aea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unit-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}

/* Measurement Inputs */
.measurement-inputs {
    display: none;
}

.measurement-inputs.active {
    display: block;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
}

.input-group.navy-only {
    display: none;
}

.input-group.navy-only.show {
    display: block;
}

.input-group.female-only {
    display: none;
}

.input-group.female-only.show {
    display: block;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #9f7aea;
    box-shadow: 0 0 0 3px rgba(159, 122, 234, 0.1);
}

.input-group input::placeholder {
    color: #a0aec0;
}

.input-unit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    pointer-events: none;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.calculate-btn {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(159, 122, 234, 0.3);
}

.clear-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.clear-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Results Section */
.results-section {
    display: none;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.results-section.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.composition-results {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.result-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.result-card.primary {
    border-color: #9f7aea;
    background: linear-gradient(135deg, #faf5ff, #e9d8fd);
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.result-value.primary {
    color: #9f7aea;
}

.result-label {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
}

.result-description {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.4;
}

.bf-category {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    display: inline-block;
}

.bf-category.essential { background: #bee3f8; color: #2c5282; }
.bf-category.athlete { background: #c6f6d5; color: #276749; }
.bf-category.fitness { background: #fbd38d; color: #b7791f; }
.bf-category.average { background: #fed7aa; color: #c05621; }
.bf-category.obese { background: #fed7d7; color: #c53030; }

.composition-breakdown {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.composition-breakdown h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breakdown-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.breakdown-stat {
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.breakdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.breakdown-value.fat {
    color: #e53e3e;
}

.breakdown-value.muscle {
    color: #38a169;
}

.breakdown-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

/* Methods Tab */
.methods-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.method-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #9f7aea;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9f7aea, #805ad5);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.method-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.method-details p {
    margin-bottom: 12px;
    color: #4a5568;
    line-height: 1.6;
}

.method-details strong {
    color: #2d3748;
}

.method-formula {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    border-left: 4px solid #9f7aea;
}

/* Measurement Tips */
.measurement-tips {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.measurement-tips h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.measurement-tips h3 i {
    color: #9f7aea;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tip-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tip-item i {
    font-size: 2rem;
    color: #9f7aea;
    margin-bottom: 15px;
}

.tip-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.tip-item p {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
}

/* Progress Tracker Tab */
.tracker-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.tracking-form,
.progress-history {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.tracking-form h3,
.progress-history h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tracking-form h3 i,
.progress-history h3 i {
    color: #9f7aea;
}

.tracking-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.tracking-form textarea:focus {
    outline: none;
    border-color: #9f7aea;
    box-shadow: 0 0 0 3px rgba(159, 122, 234, 0.1);
}

.log-btn {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.log-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(159, 122, 234, 0.3);
}

.clear-log-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.clear-log-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Progress History */
.history-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.history-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.history-btn:hover {
    border-color: #9f7aea;
    color: #9f7aea;
    transform: translateY(-2px);
}

.history-controls select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-controls select:focus {
    outline: none;
    border-color: #9f7aea;
    box-shadow: 0 0 0 3px rgba(159, 122, 234, 0.1);
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.empty-history i {
    font-size: 2.5rem;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f7fafc;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: #f7fafc;
}

.history-item:last-child {
    border-bottom: none;
}

.history-date {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 5px;
}

.history-values {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

/* Body Insights Tab */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.insight-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #9f7aea;
}

.insight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9f7aea, #805ad5);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.insight-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

/* Body Fat Ranges */
.bf-ranges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.range-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    text-align: center;
}

.range-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.range-item.essential { background: #bee3f8; color: #2c5282; }
.range-item.athlete { background: #c6f6d5; color: #276749; }
.range-item.fitness { background: #fbd38d; color: #b7791f; }
.range-item.average { background: #fed7aa; color: #c05621; }
.range-item.obese { background: #fed7d7; color: #c53030; }

.range-label {
    font-weight: 600;
}

.range-value {
    font-weight: 500;
}

/* LBM Info */
.lbm-info p,
.comparison-info,
.considerations {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.lbm-info ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.lbm-info li {
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
}

.lbm-info li:last-child {
    border-bottom: none;
}

.comparison-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #4a5568;
}

.comparison-point i {
    font-size: 1rem;
}

.comparison-point i.fa-check {
    color: #38a169;
}

.comparison-point i.fa-times {
    color: #e53e3e;
}

.consideration-item {
    padding: 12px 15px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #9f7aea;
    color: #4a5568;
    line-height: 1.5;
}

.consideration-item strong {
    color: #2d3748;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.action-btn {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    border-color: #9f7aea;
    color: #9f7aea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 122, 234, 0.15);
}

/* Related Tools */
.related-tools {
    padding: 80px 0;
    background: white;
}

.related-tools .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.related-tools .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.related-tools .section-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-tools .tool-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-tools .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #9f7aea;
}

.related-tools .tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9f7aea, #805ad5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.related-tools .tool-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.related-tools .tool-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.related-tools .tool-link {
    color: #9f7aea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.related-tools .tool-link:hover {
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .composition-hero {
        padding: 100px 0 60px;
    }
    
    .composition-hero-title {
        font-size: 2.5rem;
    }
    
    .composition-hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .analyzer-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-btn {
        flex: none;
        min-width: 140px;
        font-size: 0.85rem;
    }
    
    .calculator-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tracker-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bf-ranges {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .breakdown-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .composition-hero-title {
        font-size: 2rem;
    }
    
    .composition-hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .analyzer-tabs {
        padding: 5px;
        gap: 3px;
    }
    
    .tab-btn {
        padding: 12px 8px;
        font-size: 0.75rem;
        min-width: 110px;
    }
    
    .calculator-card,
    .input-section,
    .tracking-form,
    .progress-history,
    .measurement-tips {
        padding: 20px 15px;
    }
    
    .unit-selector {
        flex-direction: column;
    }
    
    .history-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #9f7aea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.input-group input.error,
.input-group select.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
