/* La Bomba Ñ — admin.css (teacher panel): clean, readable, same palette as the game */
:root { --ink: #0E1420; --night: #1B2333; --yellow: #FFC93C; --red: #B3261E; --green: #127A43; --bg: #F3F5F9; --line: #D7DEE8; --muted: #56637A; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: #1d4ed8; }
h1 { margin: 0; font-size: 28px; }
h2 { margin: 0 0 10px; font-size: 19px; }
h2 small { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 8px; font-family: ui-monospace, Consolas, monospace; }
.admin-top { background: var(--night); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 10px 22px; flex-wrap: wrap; gap: 10px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.brand span, .accent { color: var(--yellow); }
.brand small { font-weight: 400; color: #C9D3E3; font-size: 14px; letter-spacing: 0; margin-left: 6px; }
.admin-top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-top nav a { color: #C9D3E3; text-decoration: none; padding: 6px 12px; border-radius: 8px; }
.admin-top nav a:hover, .admin-top nav a.on { background: #2B3547; color: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row form { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card.narrow { max-width: 440px; width: 100%; }
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
fieldset legend { font-weight: 600; font-size: 14px; padding: 0 4px; }
fieldset label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
input, select, textarea { font: inherit; border: 1px solid #b8c2d1; border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--ink); width: 100%; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--ink); }
textarea { width: 100%; resize: vertical; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.25); }
.btn-s { padding: 5px 10px; font-size: 14px; }
.btn-xl { padding: 12px 26px; font-size: 18px; }
.btn-light { background: #E6EBF2; color: var(--ink); }
.btn-danger { background: #fde8e7; color: var(--red); }
.alert { background: #fde8e7; color: var(--red); border: 1px solid #f5c2bf; padding: 10px 14px; border-radius: 10px; margin: 0; }
.alert.ok { background: #e3f7ea; color: var(--green); border-color: #b9e6c8; }
.alert.warn { background: #fff6dc; color: #7a5a00; border-color: #f2df9e; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 14px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { background: #F8FAFC; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.tbl tr.inactive td { opacity: .55; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }
.code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; background: var(--yellow); padding: 2px 8px; border-radius: 6px; }
.tag { background: #E6EBF2; border-radius: 6px; padding: 1px 6px; font-size: 12px; }
.module-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 8px; }
.module-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.module-row select { width: auto; padding: 4px 6px; font-size: 14px; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 6px; display: flex; gap: 10px; }
.mission-form { display: flex; flex-direction: column; gap: 16px; }
