/* Lean Body Mass Calculator Styles */
#lean-body-mass-calculator {
    max-width: 1200px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.lbmc-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.lbmc-left-panel {
    flex: 1;
    min-width: 0;
}

.lbmc-right-panel {
    flex: 1;
    min-width: 0;
}

.lbmc-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lbmc-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.lbmc-section p {
    color: #666;
    margin-bottom: 20px;
}

.lbmc-field {
    margin-bottom: 20px;
}

.lbmc-field-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.lbmc-field-row .lbmc-field {
    flex: 1;
    margin-bottom: 0;
    min-width: 120px;
}

.lbmc-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lbmc-field input[type="number"] {
    width: 200px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.lbmc-field input[type="number"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,124,186,0.3);
}

.lbmc-field select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    width: 100%;
}

.estimate-btn {
    background: #17a2b8;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.estimate-btn:hover {
    background: #138496;
}

.body-fat-guide {
    margin-top: 10px;
    padding: 15px;
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    font-size: 14px;
}

.age-gender-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.age-gender-note p {
    margin: 0 0 10px 0;
    color: #856404;
}

.age-gender-note p:last-child {
    margin-bottom: 0;
}

.body-fat-estimation {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.body-fat-estimation h5 {
    color: #0c5460;
    margin-top: 0;
}

.body-fat-estimation ul {
    margin: 10px 0;
    padding-left: 20px;
}

.body-fat-estimation li {
    margin-bottom: 5px;
}

.category-placeholder {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.percentage-examples {
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.percentage-examples small {
    color: #007cba;
    font-weight: 500;
}

.lbmc-field .unit {
    font-weight: bold;
    color: #666;
    margin-left: 5px;
}

#calculate-btn, #recalculate-btn {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

#calculate-btn:hover, #recalculate-btn:hover {
    background: #005a87;
}

#calculate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.lbmc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 15px;
}

#results-section {
    background: #d4edda;
    border-color: #c3e6cb;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #c3e6cb;
}

.result-item:last-of-type {
    border-bottom: none;
}

.main-result {
    background: #28a745;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: bold;
    font-size: 18px;
}

.main-result .result-label,
.main-result .result-value {
    color: white;
}

.result-label {
    font-weight: bold;
    color: #155724;
}

.result-value {
    font-weight: bold;
    color: #155724;
    font-size: 16px;
}

.result-explanation {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.result-explanation p {
    margin: 0 0 10px 0;
    color: #495057;
}

.result-explanation p:last-child {
    margin-bottom: 0;
}

/* Body Fat Categories and Information */
#info-section {
    background: #e7f3ff;
    border-color: #b3d9ff;
}

#info-section h4, #info-section h5 {
    color: #0066cc;
    margin-top: 0;
}

.body-fat-categories h5 {
    margin-bottom: 15px;
    border-bottom: 1px solid #b3d9ff;
    padding-bottom: 5px;
}

.category-tables {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.category-table {
    flex: 1;
}

.category-table h6 {
    color: #0066cc;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.category-table ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-table li {
    margin-bottom: 8px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 4px;
    font-size: 14px;
}

.category {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 5px;
}

.category.essential { background: #ff6b6b; color: white; }
.category.athletes { background: #4ecdc4; color: white; }
.category.fitness { background: #45b7d1; color: white; }
.category.acceptable { background: #96ceb4; color: white; }
.category.obese { background: #feca57; color: #333; }

.body-fat-category {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* Results Section Updates */
#results-section {
    min-height: 400px;
}

#results-placeholder {
    color: #666;
    text-align: center;
    padding: 30px 0;
}

.result-preview {
    margin-top: 20px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    opacity: 0.5;
}

.main-preview {
    background: #f0f0f0;
    color: #666;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: bold;
    font-size: 18px;
    border: 2px dashed #ccc;
}

.result-category {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

/* Disclaimer Styles */
.lbmc-disclaimer {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.lbmc-disclaimer h5 {
    color: #856404;
    margin-top: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lbmc-disclaimer p {
    color: #856404;
    margin-bottom: 15px;
    line-height: 1.6;
}

.lbmc-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #lean-body-mass-calculator {
        margin: 10px;
        max-width: none;
    }
    
    .lbmc-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .lbmc-section {
        padding: 15px;
    }
    
    .lbmc-field-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .lbmc-field input[type="number"] {
        width: 150px;
    }
    
    .estimate-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .category-tables {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-item, .preview-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .result-value {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .lbmc-field input[type="number"] {
        width: 100%;
    }
    
    .input-group {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .lbmc-field select {
        width: 100%;
    }
    
    #calculate-btn, #recalculate-btn {
        width: 100%;
    }
    
    .lbmc-disclaimer {
        padding: 15px;
    }
}