/* ===========================================
    VO2 Max Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.vo2-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.vo2-form {
    padding: 25px; 
    border: 1px solid #FF8A65; /* Light Orange Border */
    border-radius: 8px;
    background-color: #FFF3E0; /* Very Light Orange Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.vo2-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #E64A19; /* Dark Orange */
    border-bottom: 2px solid #FFCCBC;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- 1. Test Selection Toggle --- */
.vo2-test-toggle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.vo2-test-toggle button {
    padding: 10px 15px;
    border: 1px solid #FF7043;
    background-color: #FFE0B2;
    color: #E64A19;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.vo2-test-toggle button.active {
    background-color: #E64A19;
    color: white;
    border-color: #E64A19;
}

/* --- 2. Input Grid --- */
.vo2-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
}

.vo2-input-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.vo2-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.vo2-input-group input, .vo2-input-group select {
    padding: 12px;
    border: 1px solid #FF7043;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: right;
}

/* Time Input Styling (Minutes/Seconds) */
.time-input-group {
    display: flex;
    gap: 10px;
}
.time-input-group input {
    flex-basis: 50%;
}
.time-input-group span {
    align-self: flex-end;
    font-weight: 500;
    color: #495057;
    margin-bottom: 12px;
}


/* Button Styles */
.vo2-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #E64A19; /* Primary Dark Orange */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.vo2-calculate-btn:hover {
    background-color: #D84315;
}

/* --- Results Display --- */
.vo2-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #FF7043; 
    border-radius: 8px;
    background-color: #FFECB3; /* Lightest Orange */
    text-align: center;
}

.vo2-results-title {
    color: #E64A19;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFCCBC;
    padding-bottom: 5px;
}

/* VO2 Max Value */
#vo2MaxOutput {
    font-size: 3.0rem;
    font-weight: 800;
    color: #4CAF50; /* Green for key result */
    margin: 10px 0 15px;
    line-height: 1.1;
}

/* Fitness Category Rating */
#vo2MaxRating {
    font-size: 1.2rem;
    font-weight: 600;
    color: #E64A19;
    margin-bottom: 20px;
    padding: 8px;
    background-color: #FFF9C4; /* Light Yellow Highlight */
    border-radius: 4px;
}

/* Details Table */
.vo2-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.vo2-details-table th, .vo2-details-table td {
    padding: 10px;
    border: 1px solid #FFCCBC;
    text-align: left;
}
.vo2-details-table th {
    background-color: #FFCCBC;
    color: #E64A19;
    font-weight: 700;
    width: 50%;
}
.vo2-details-table td {
    font-size: 1rem;
    font-weight: 600;
}

/* 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) {
    .vo2-input-group {
        flex-basis: 100%; /* Stack inputs on small screens */
    }
    .vo2-test-toggle button {
        flex-basis: 100%;
        margin: 5px 0;
    }
}