
/* ================= GLOBAL ================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
}

button {
    padding: 8px 18px;
    font-size: 14px;
}

/* ================= MAIN LAYOUT (KEEP) ================= */
.mainRow {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.leftPanel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rightPanel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ================= CHARTS (UNCHANGED) ================= */
.charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.chartBox {
    background: white;
    border: 1px solid #ddd;
    padding: 5px;
    height: 180px;
}

    .chartBox canvas {
        width: 100% !important;
        height: 100% !important;
        display: block;
    }

canvas {
    background: transparent;
}

/* ================= GRIP LED ================= */
.led {
    flex: 1;
    margin: 2px 0;
    background: #1f5f78;
    border: 2px solid #0d2b36;
    border-radius: 3px;
}

    .led.active.low {
        background: #ffeb3b;
    }

    .led.active.mid {
        background: #ff9800;
    }

    .led.active.high {
        background: #f44336;
    }

/* ================= HISTOGRAM ================= */
.histRow {
    display: flex;
    width: 100%;
    gap: 20px;
}

.histBox {
    flex: 1;
    max-width: calc(100% / 7);
}

    .histBox canvas {
        width: 100% !important;
        height: 120px !important;
    }

.slider {
    width: 80%;
    height: 10px;
    margin: 8px auto;
    display: block;
}

/* ================= GAUGES ================= */
.gaugeRow {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.gaugeBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.gIcon {
    font-size: 40px;
    margin-top: 8px;
}

/* ================= WAVES ================= */
.waveRow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.waveBox {
    background: #111;
    padding: 5px;
    border-radius: 6px;
}

    .waveBox canvas {
        width: 100%;
        height: 150px;
    }
/* ================= TRAINING UI ================= */

/* ===== CENTER CONTENT ===== */
#centerWrap {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

/* ===== TOP BAR ===== */
#topBar {
    text-align: center;
    margin-top: 20px;
}

#appTitle {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

#controlBar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

    #controlBar button {
        padding: 8px 14px;
        border-radius: 8px;
        border: none;
        background: #222;
        color: #ccc;
        font-weight: bold;
        font-size: 13px;
    }

        #controlBar button:hover {
            background: #333;
        }

#calStatus {
    font-size: 13px;
    color: #888;
    min-height: 16px;
}

/* ===== SECTION BLOCK ===== */
.sectionBlock {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    background: #151515;
}

/* ===== HEADER ===== */
.sectionHeaderBox {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #aaa;
    margin-bottom: 12px;
    padding: 6px 0;
    border-radius: 8px;
    background: #1a1a1a;
}

/* ===== GRID ROW (IMPORTANT FIX) ===== */

/* ===== FIXED GRID (4 PER ROW) ===== */
.selectRow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

    /* ===== BUTTONS ===== */
    .selectRow button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 14px;
        border-radius: 12px;
        border: none;
        background: #222;
        color: #aaa;
        font-weight: bold;
        font-size: 13px;
        transition: all 0.2s ease;
        opacity: 0.4;
        transform: scale(0.95);
    }

        /* ===== ACTIVE ===== */
        .selectRow button.active {
            opacity: 1;
            transform: scale(1.08);
            background: linear-gradient(135deg, #4CAF50, #2ecc71);
            color: white;
        }


/* ===== DISABLED (not available for shot) ===== */
.focusBtn.disabled {
    opacity: 0.05;
    transform: scale(0.9);
    pointer-events: none;
}
/* ===== ICON ===== */
.icon {
    font-size: 28px;
}

/* ===== DRILL BLOCK ===== */
.highlightBlock {
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    padding: 8px 12px;
    margin-top: 16px;
}

/* ===== DRILL TEXT ===== */
#selectedDrill {
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== COACH BOX ===== */
#coachBox {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #101820;
    border: 1px solid #1f2f3a;
    text-align: center;
}

#coachTitle {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

#coachText {
    font-size: 15px;
    color: #ccc;
}

/* ===== BUTTON ALIGNMENT ===== */
#trainingView > button {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ===== START BUTTON ===== */
#startDrillBtn {
    width: 100%;
    max-width: 320px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #2196F3, #00bcd4);
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* ===== SECONDARY BUTTON ===== */
.secondaryBtn {
    width: 100%;
    max-width: 320px;
    margin: 10px auto 0;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #222;
    color: #888;
}