/* ═══════════════════════════════════════════════════════════════════════════
   Hispaled Backoffice — Design System Commons
   Shared variables, reset, header, nav, form elements, scrollbar, url buttons
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --bg: #0a0e14;
  --surface: #111720;
  --surface2: #18202e;
  --border: #1e2d42;
  --accent: #00d4ff;
  --accent2: #ff6b35;
  --text: #c8d8e8;
  --text-muted: #5a7a96;
  --success: #00e5a0;
  --error: #ff4d6a;
  --warn: #f59e0b;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Syne', sans-serif;
}

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

/* ─── BASE ─── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  min-height: 100vh;
}

/* ─── HEADER ─── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hispaled-logo { height: 24px; }

header h1 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
}

.header-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.tb-logo {
  width: 30px; height: 30px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.tool-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* ─── NAV TABS ─── */
.nav-tabs {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.nav-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all .15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab:hover { border-color: var(--accent); color: var(--accent); }
.nav-tab.active { background: rgba(0,212,255,.12); border-color: var(--accent); color: var(--accent); }

/* ─── FORM ELEMENTS ─── */
label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  margin-top: 14px;
}

label:first-of-type { margin-top: 0; }

input, select, textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 6px;
  outline: none;
  transition: border-color .2s;
}

input:focus, select:focus, textarea:focus { border-color: var(--accent); }

select option { background: var(--surface2); }

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* ─── URL BUTTONS ─── */
.url-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  line-height: 1.3;
}

.url-btn:hover { border-color: var(--accent); color: var(--text); }
.url-btn.active { background: rgba(0,212,255,.12); border-color: var(--accent); color: var(--accent); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
