/* ------------------------------------------------------------
   CUBEHUB TIMER — SQUADFORCE-PROOF CSS
------------------------------------------------------------ */

/* Wrapper */
#cubehub-timer-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

/* Timer Display */
#timer {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;

    /* Force correct numeric rendering */
    font-variant-numeric: tabular-nums lining-nums !important;
    font-feature-settings: "tnum" 1, "lnum" 1 !important;
    letter-spacing: 0 !important;

    /* Prevent SquadForce transitions */
    transition: none !important;
}

/* Status text */
#status {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Scramble */
#scramble {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 10px;
    word-wrap: break-word;
}

/* Copy button */
#copyScrambleBtn {
    display: inline-block;
    margin: 0 auto 20px auto;
    padding: 6px 12px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;

    /* Override SquadForce */
    text-transform: none !important;
    font-weight: 400 !important;
}

#copyScrambleBtn:hover {
    background: #333;
}

/* Session Tabs */
.cht-session-tab {
    padding: 6px 12px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    margin-right: 6px;
    margin-bottom: 10px;
    font-size: 0.85rem;

    /* Override SquadForce */
    text-transform: none !important;
    font-weight: 400 !important;
}

.cht-session-tab.active {
    background: #00aaff;
    border-color: #0088cc;
}

.cht-session-tab.add {
    background: #333;
}

.cht-session-tab:hover {
    background: #333;
}

/* Solve History */
#solveHistory {
    margin-top: 20px;
}

.cht-history-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 6px;
    cursor: pointer;
}

/* Solve time */
.cht-history-time {
    font-size: 1rem;

    /* Force correct numeric rendering */
    font-variant-numeric: tabular-nums lining-nums !important;
    font-feature-settings: "tnum" 1, "lnum" 1 !important;
    letter-spacing: 0 !important;

    transition: none !important;
}

/* Fastest solve highlight */
.cht-fastest {
    color: #00ff99 !important;
    font-weight: bold !important;
}

/* Solve metadata */
.cht-history-meta {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Clear Solves button — styled like session tabs */
.cht-session-tab.clear-solves {
    display: block;
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

/* Stats Panel */
#statsPanel {
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
}

#statsPanel.open {
    display: block;
}

#statsBar {
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Solve Detail Panel */
#solveDetailBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
}

#solveDetailBackdrop.visible {
    display: block;
}

#solveDetailPanel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    width: 320px;
    border-radius: 6px;
    display: none;
}

#solveDetailPanel.visible {
    display: block;
}

#solveDetailPanel button {
    margin-top: 10px;
}

/* Inputs inside detail panel */
#detailNotesInput,
#detailPenaltySelect {
    width: 100%;
    margin-top: 6px;
    padding: 6px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

/* Settings Panel */
#settingsPanel {
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
}

#settingsPanel.open {
    display: block;
}

#settingsTab {
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Inputs */
#sessionNameInput,
#sessionNotesInput,
#scrambleTypeSelect {
    width: 100%;
    padding: 6px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 10px;

    /* Override SquadForce */
    text-transform: none !important;
    font-weight: 400 !important;
}