/* Simulador-MRO | styles/layout.css | v1.0 */

/* ── TOPBAR ── */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-logo {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}
.topbar-logo span  { color: var(--muted); font-weight: 400; }
.topbar-logo em    { font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 1px; margin-left: 6px; }
.topbar-status     { font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot               { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: pulse 2s infinite; flex-shrink: 0; }
.dot.ok            { background: var(--ok); }
.dot.error         { background: var(--danger); animation: none; }

/* ── NAV ── */
.nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav-btn {
  padding: 12px 20px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-btn:hover  { color: var(--text); }
.nav-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── MAIN ── */
.main           { padding: 20px; max-width: 1200px; margin: 0 auto; }
.section-hidden { display: none; }

/* ── STAT CARDS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.stat-card::before        { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.stat-card.ok::before     { background: var(--ok); }
.stat-card.warn::before   { background: var(--warn); }
.stat-card.danger::before { background: var(--danger); }
.stat-card.info::before   { background: var(--accent); }

.stat-label {
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat-value                  { font-family: var(--mono); font-size: 32px; line-height: 1; }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.warn .stat-value   { color: var(--warn); }
.stat-sub                    { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ── PANELS ── */
.panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
}
.panel-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.panel-hint { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .main          { padding: 12px; }
  .stat-value    { font-size: 26px; }
  .tbl th:nth-child(n+4),
  .tbl td:nth-child(n+4) { display: none; }
  .modal         { border-radius: 0; max-height: 100vh; }
  .modal-overlay { padding: 0; align-items: flex-end; }
}
