/* ===========================================
   Macro Nutrient Calculator - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.mc-box {
    max-width: 900px;
    margin: 0 auto;
}

/* Controls and Inputs */
.mc-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: #f7fee7; /* Light Lime Green BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #d9f99d;
    margin-bottom: 30px;
}

.mc-input-group {
    display: flex;
    flex-direction: column;
}

.mc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3f6212; /* Dark Green Label */
    margin-bottom: 6px;
}

.mc-input, .mc-select {
    padding: 10px;
    border: 1px solid #a3e635; /* Medium Green Border */
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
    width: 100%;
}

/* Macro Ratio Sliders */
.mc-ratio-group {
    grid-column: 1 / -1; /* Spans all columns */
    margin-top: 15px;
    padding: 15px 0;
    border-top: 1px dashed #d9f99d;
}

.mc-ratio-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.mc-ratio-item label {
    flex-basis: 80px;
    text-align: right;
    font-weight: 600;
    color: #4b5563;
}

.mc-ratio-item input[type="range"] {
    flex-grow: 1;
}

.mc-ratio-value {
    width: 50px;
    font-weight: 700;
    color: #4d7c0f;
    text-align: right;
}

/* Calculate Button */
.mc-btn-calc {
    grid-column: 1 / -1; 
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #65a30d; /* Primary Lime Green Button */
    color: white;
    transition: background 0.2s;
    margin-top: 10px;
}
.mc-btn-calc:hover {
    background: #4d7c0f;
}

/* --- Results Section --- */

.mc-results-section {
    margin-top: 30px;
}

/* TDEE Summary */
.mc-tdee-summary {
    background: #ecfccb;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid #a3e635;
}

.mc-tdee-title {
    font-size: 1.1rem;
    color: #3f6212;
    margin-bottom: 5px;
}
.mc-tdee-value {
    font-size: 3rem;
    font-weight: 800;
    color: #65a30d;
}

/* Macro Breakdown Cards */
.mc-macro-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.mc-card {
    flex: 1;
    min-width: 200px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.mc-card-title {
    font-size: 1rem;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 5px;
}

.mc-grams-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.mc-grams-value small {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    margin-top: 5px;
}

/* Color Coding for Macros */
.mc-protein { color: #10b981; } /* Emerald Green */
.mc-carbs { color: #f59e0b; } /* Amber */
.mc-fats { color: #ef4444; } /* Red */


/* Responsive Styling */
@media (max-width: 700px) {
    .mc-controls {
        grid-template-columns: 1fr;
    }
    .mc-macro-cards {
        flex-direction: column;
    }
    .mc-ratio-item {
        flex-direction: column;
        align-items: stretch;
    }
    .mc-ratio-item label {
        text-align: left;
    }
}