/* ===========================================
   Calories Burned Calculator - Tool Specific Styles (Teal/Cyan Theme)
   =========================================== */

/* Tool Layout */
.cbc-box {
    max-width: 650px;
    margin: 0 auto;
}

/* --- Unit Toggle --- */
.cbc-unit-toggle {
    display: flex;
    margin-bottom: 25px;
    background: #e0f7fa; /* Light Cyan */
    border-radius: 8px;
    padding: 5px;
}

.cbc-unit-toggle label {
    flex-grow: 1;
    text-align: center;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    color: #00838f; /* Dark Teal */
    transition: background 0.3s, color 0.3s;
    border-radius: 6px;
}

.cbc-unit-toggle input[type="radio"] {
    display: none;
}

.cbc-unit-toggle input[type="radio"]:checked + label {
    background: #00bcd4; /* Primary Cyan highlight */
    color: white;
    box-shadow: 0 2px 5px rgba(0, 188, 212, 0.4);
}


/* --- Controls and Inputs --- */
.cbc-controls {
    background: #f0faff; 
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #b2ebf2;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cbc-input-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Weight, Activity, Duration */
    gap: 20px;
}

/* Adjusting Activity selector to span 2 columns on larger screens */
.cbc-activity-group {
    grid-column: 1 / 3; 
}
.cbc-input-row > .cbc-input-group:nth-child(3) {
    grid-column: 3 / 4; /* Duration input remains 1 column */
}


.cbc-input-group {
    display: flex;
    flex-direction: column;
}

.cbc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00838f;
    margin-bottom: 6px;
}

.cbc-input, .cbc-select {
    padding: 10px;
    border: 1px solid #4dd0e1; 
    border-radius: 6px;
    font-size: 1.1rem;
    color: #1f2937;
    width: 100%;
}

.cbc-input-addon {
    display: flex;
    align-items: center;
}

.cbc-input-addon .cbc-input {
    border-left: none;
    border-radius: 0 6px 6px 0;
    text-align: right;
}

.cbc-input-addon span {
    background-color: #b2ebf2;
    border: 1px solid #4dd0e1;
    border-right: none;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    font-size: 1.1rem;
    color: #00838f;
    width: 50px; 
    text-align: center;
}

/* --- Results Summary --- */

.cbc-results-section {
    margin-top: 30px;
    text-align: center;
}

.cbc-summary {
    padding: 25px;
    background: #e0f7fa; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cbc-result-label {
    font-size: 1.2rem;
    color: #00838f;
    font-weight: 600;
    margin-bottom: 5px;
}

.cbc-score-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #00bcd4;
    line-height: 1.1;
    margin-bottom: 10px;
}

.cbc-description {
    font-size: 1rem;
    color: #4db6ac;
    padding-top: 10px;
    border-top: 1px dashed #b2ebf2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cbc-input-row {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
    }
    .cbc-activity-group {
        grid-column: 1 / 3; 
    }
    .cbc-input-row > .cbc-input-group:nth-child(3) {
        grid-column: 1 / 3; /* Duration spans full width below */
    }
    .cbc-input-row > .cbc-input-group:nth-child(1) {
        grid-column: 1 / 3; /* Weight spans full width */
    }
    .cbc-score-value {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .cbc-input-row {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .cbc-activity-group, 
    .cbc-input-row > .cbc-input-group:nth-child(3),
    .cbc-input-row > .cbc-input-group:nth-child(1) {
        grid-column: 1 / 2;
    }
}