/* ===========================================
    Fat Loss Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.fl-box {
    max-width: 700px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.fl-form {
    padding: 25px; 
    border: 1px solid #4CAF50; /* Green Border */
    border-radius: 8px;
    background-color: #F1F8E9; /* Very Light Green Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.fl-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #388E3C; /* Darker Green */
    border-bottom: 2px solid #DCEDC8;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.fl-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 10px; 
}

.fl-input-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.fl-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.fl-input-group input,
.fl-input-group select {
    padding: 12px;
    border: 1px solid #A5D6A7;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: right;
    background-color: white;
}
.fl-input-group select {
    text-align: left; 
}

/* Button Styles */
.fl-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #4CAF50; /* Primary Green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.fl-calculate-btn:hover {
    background-color: #388E3C;
}

/* --- Results Display --- */
.fl-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #4CAF50; 
    border-radius: 8px;
    background-color: #E0F7FA; /* Light Teal/Cyan for key data */
    text-align: center;
}

.fl-results-title {
    color: #00838F; /* Dark Teal */
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #B2EBF2;
    padding-bottom: 5px;
}

/* Results Table */
.fl-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.fl-results-table th, .fl-results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #B2EBF2;
    text-align: left;
}
.fl-results-table th {
    background-color: #F8F9FA; 
    color: #388E3C;
    font-weight: 600;
    width: 65%;
}

/* Key Value Styling */
.fl-results-table td {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0D47A1; /* Dark Blue for Calorie values */
}

/* Deficit Highlight */
.fl-results-table tr.deficit-row td {
    font-size: 1.8rem;
    color: #C62828; /* Red for the required deficit */
}

/* Recalculate Button (Global Style Reuse) */
.bc-recalculate-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #9E9E9E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bc-recalculate-btn:hover {
    background-color: #616161;
}

/* --- Responsive Adjustments --- */
@media (max-width: 550px) {
    .fl-input-group {
        flex-basis: 100%;
        min-width: unset;
    }
}