/* whm.css — X Byte master management console (zigou.com.br/whm) */

.admin { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 264px; flex: 0 0 264px; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #070d18, var(--xbyte-dark));
  border-right: 1px solid var(--xbyte-border);
  display: flex; flex-direction: column; padding: 1.1rem; overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem 1rem; }
.sidebar-brand .badge { font-size: .6rem; }
.side-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--xbyte-faint); padding: 1rem .7rem .4rem; font-weight: 600; }
.side-link {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: .7rem;
  color: var(--xbyte-muted); font-weight: 500; font-size: .92rem; cursor: pointer;
  transition: all .14s ease; position: relative;
}
.side-link:hover { background: rgba(255,255,255,.04); color: var(--xbyte-text); }
.side-link.active { background: rgba(56,189,248,.12); color: #e0f2fe; box-shadow: inset 0 0 0 1px rgba(56,189,248,.28); }
.side-link svg { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 2; }
.side-link .count { margin-left: auto; font-size: .72rem; background: rgba(255,255,255,.06); padding: .1rem .45rem; border-radius: 99px; }
.side-link.active .count { background: rgba(56,189,248,.2); color: #bae6fd; }

/* Main column */
.admin-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.6rem;
  background: rgba(5,7,13,.78); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--xbyte-border);
}
.topbar h1 { font-size: 1.3rem; margin: 0; }
.topbar .search { flex: 1 1 auto; max-width: 360px; }
.content { padding: 1.6rem; }

/* KPI cards */
.kpi { padding: 1.3rem 1.4rem; height: 100%; }
.kpi-label { color: var(--xbyte-muted); font-size: .82rem; }
.kpi-value { font-family: var(--bs-font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; margin-top: .2rem; }
.kpi-trend { font-size: .78rem; }
.kpi-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.22); }
.kpi-icon svg { width: 20px; height: 20px; stroke: var(--xbyte-cyan); }

/* Mini bar chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bar { flex: 1; background: var(--xbyte-gradient); border-radius: 6px 6px 0 0; min-height: 6px; opacity: .85; transition: height .4s ease; }
.bar:hover { opacity: 1; }

/* Tables */
.table-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.cell-main { font-weight: 600; }
.cell-sub { color: var(--xbyte-muted); font-size: .8rem; }
.row-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.icon-btn {
  width: 32px; height: 32px; border-radius: .55rem; display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--xbyte-border); color: var(--xbyte-muted);
  cursor: pointer; transition: all .14s ease;
}
.icon-btn:hover { color: var(--xbyte-text); border-color: var(--xbyte-border-strong); background: rgba(255,255,255,.08); }
.icon-btn.danger:hover { color: #f87171; border-color: rgba(220,38,38,.4); }
.icon-btn svg { width: 15px; height: 15px; stroke-width: 2; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--xbyte-faint); }

/* Mobile sidebar toggle */
.sidebar-toggle { display: none; }
@media (max-width: 991px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 1050; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .sidebar.open { transform: none; }
  .sidebar-toggle { display: inline-flex; }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1040; }
}

.detail-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--xbyte-border); }
.detail-row:last-child { border-bottom: 0; }
.detail-row .label { color: var(--xbyte-muted); font-size: .86rem; }
