/* Defensive Assistant, Missouri
   Visual language inherited from ../../defensive-dashboard-missouri/styles.css.
   Same color tokens, same panel chrome, same tab idiom, same typography.
   Sizing tuned for native 1x rendering to honor the Zero Scroll Rule. */

:root {
  --bg: #0a0e1a;
  --panel-bg: #11172a;
  --panel-border: #1f2740;
  --text-primary: #e8ecf5;
  --text-secondary: #8a93a8;
  --text-muted: #5a6278;
  --ku-blue: #0051BA;
  --ku-crimson: #E8000D;
  --mizzou-yellow: #E6B800;
  --hot: #FF6B35;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.25;
  height: 100vh;
  overflow: hidden;
}

body {
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}

/* ============ HEADER ============ */
.page-header {
  flex: 0 0 76px;
  height: 76px;
  margin-bottom: 6px;
  display: flex;
}

.brand-row {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: var(--ku-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 18px;
  border-radius: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.brand-right {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============ TAB STRIP ============ */
.tab-strip {
  flex: 0 0 52px;
  height: 52px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 6px;
  overflow: hidden;
}

.tab {
  flex: 0 0 100px;
  min-width: 0;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-active-slot {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

/* ============ APP GRID, SIX EQUAL COLUMNS ============ */
.app-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 6px;
  min-height: 0;
}

.col-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.col-panel-header {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--panel-border);
  text-align: center;
}

.col-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
}

/* ============ COLUMN BUTTONS ============ */
.col-btn {
  flex: 0 0 50px;
  height: 50px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 6px;
  transition: background 100ms ease, color 100ms ease, border-color 100ms ease;
}

.col-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.col-btn.selected {
  background: var(--ku-crimson);
  border-color: var(--ku-crimson);
  color: #fff;
  font-weight: 700;
}

/* ============ CONCEPT COLUMN, BUTTONS WRAP + NOTES ============ */
.concept-buttons-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notes-input {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin-top: 6px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 10px;
  resize: none;
  outline: none;
}

.notes-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.notes-input:focus {
  border-color: var(--ku-blue);
}

/* ============ YARDS COLUMN ============ */
.yards-display {
  flex: 0 0 84px;
  height: 84px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.yards-pad {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
  min-height: 0;
}

.pad-btn {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  transition: background 100ms ease, border-color 100ms ease;
}

.pad-btn:hover {
  border-color: var(--text-secondary);
}

.pad-btn-mod {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 700;
}

.pad-btn-mod:hover {
  color: var(--text-primary);
}

/* ============ CONFIRM COLUMN ============ */
.confirm-col .confirm-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 0;
}

.confirm-btn {
  width: 100%;
  flex: 1 1 auto;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: not-allowed;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.confirm-btn:not(:disabled) {
  background: var(--ku-blue);
  border-color: var(--ku-blue);
  color: #fff;
  cursor: pointer;
}

.confirm-btn:not(:disabled):hover {
  background: #0066e0;
  border-color: #0066e0;
}

/* ============ ACTION BAR ============ */
.action-bar {
  flex: 0 0 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  border-top: 1px solid var(--panel-border);
}

.action-left {
  display: flex;
  gap: 10px;
}

.skip-btn,
.penalty-btn {
  height: 40px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 100ms ease, color 100ms ease, border-color 100ms ease;
}

.skip-btn {
  background: var(--text-muted);
  color: #fff;
  border-color: var(--text-muted);
}

.skip-btn:hover {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
}

.penalty-btn {
  background: var(--mizzou-yellow);
  color: var(--bg);
  border-color: var(--mizzou-yellow);
}

.penalty-btn:hover {
  background: #f0c419;
  border-color: #f0c419;
}

.play-counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
