/* Extra styles for the solve checklists, layered on top of algorithms.css
   (which the solve pages also load for the shared table and badge styles). */

/* the Start button + Random toggle + time box + solved counter, above the list */
.solve-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.start-btn { font-size: 18px; padding: 8px 20px; border-radius: var(--border-radius-md); border: 1px solid var(--color-border-secondary); background: var(--color-background-secondary); color: var(--color-text-primary); cursor: pointer; }
.start-btn:hover { border-color: #3a3a44; }
.opt { display: flex; align-items: center; gap: 7px; font-size: 17px; color: var(--color-text-secondary); }
.opt input[type=checkbox] { width: 17px; height: 17px; cursor: pointer; accent-color: #6ea8fe; }
#timeInput { width: 70px; font-family: var(--font-mono); font-size: 17px; text-align: center; padding: 6px 8px; border-radius: var(--border-radius-md); border: 1px solid var(--color-border-secondary); background: var(--color-background-secondary); color: var(--color-text-primary); outline: none; }
#timeInput:focus { border-color: #3a3a44; }
.progress { font-size: 17px; color: var(--color-text-secondary); }

/* the leading checkbox column in each checklist row */
.solve-check { width: 18px; height: 18px; cursor: pointer; accent-color: #6ea8fe; }
/* a row whose algorithm is marked solved: dimmed with a struck-through name */
tr.solved .algo a { color: var(--color-text-tertiary); text-decoration: line-through; }

/* re-balance the column widths: the checklist adds a leading checkbox column */
.tbl-wrap th:nth-child(1) { width: 5%; }
.tbl-wrap th:nth-child(2) { width: 5%; }
.tbl-wrap th:nth-child(3) { width: 45%; }
.tbl-wrap th:nth-child(4) { width: 16%; }
.tbl-wrap th:nth-child(5) { width: 29%; }

/* ---- the coding session (editor, controls, output) ---- */

/* current problem title + countdown timer */
.session-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 0.9rem; }
.session-title { font-size: 22px; font-weight: 600; color: var(--color-text-primary); }
.timer { font-family: var(--font-mono); font-size: 22px; color: var(--color-text-primary); }
.timer.up { color: #F7C1C1; }   /* time's up — red */

/* the code editor */
.editor { width: 100%; min-height: 320px; font-family: var(--font-mono); font-size: 16px; line-height: 1.5; padding: 12px 14px; border-radius: var(--border-radius-md); border: 1px solid var(--color-border-secondary); background: var(--color-background-secondary); color: var(--color-text-primary); outline: none; resize: vertical; tab-size: 2; }
.editor:focus { border-color: #3a3a44; }

/* Run / Solution / Next / End buttons under the editor */
.session-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 1rem 0; }
.btn { font-size: 17px; padding: 8px 18px; border-radius: var(--border-radius-md); border: 1px solid var(--color-border-secondary); background: var(--color-background-secondary); color: var(--color-text-primary); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #3a3a44; }
.btn-ghost { color: var(--color-text-secondary); }

/* output box */
.output-label { display: block; font-size: 15px; color: var(--color-text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.output { font-family: var(--font-mono); font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; min-height: 60px; padding: 12px 14px; border-radius: var(--border-radius-md); border: 1px solid var(--color-border-tertiary); background: var(--color-background-secondary); color: var(--color-text-primary); }
