/* FazaTempMail — panel shell (sidebar) */

body.panel { background: var(--bg); }

.app {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

/* ── sidebar ─────────────────────────────────────────── */
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 14px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(59, 130, 246, .12), transparent 42%),
    #080d18;
  z-index: 40;
}

.side__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--line);
}
.side__brand img { width: 38px; height: 38px; border-radius: 12px; }
.side__brand strong { display: block; font-size: 15px; letter-spacing: .01em; }
.side__brand small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

.side__nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }

.side__group {
  margin: 14px 10px 5px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.side__group:first-child { margin-top: 2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav svg { flex: none; opacity: .85; }
.nav:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.nav.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, .95), rgba(59, 130, 246, .85));
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(37, 99, 235, .95);
}
.nav.is-active svg { opacity: 1; }
.nav__badge {
  margin-left: auto;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--text);
}
.nav.is-active .nav__badge { background: rgba(0, 0, 0, .22); color: #fff; }

.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.statbox {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .025);
}
.statbox__title {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.statbox__title i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}
.statbox__row {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 11.5px; color: var(--faint);
}

.side__user { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.avatar {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff; font-weight: 600; font-size: 14px;
}
.side__userinfo { min-width: 0; }
.side__userinfo strong { display: block; font-size: 13px; line-height: 1.3; }
.side__userinfo small { display: block; font-size: 10.5px; color: var(--faint); }
.side__user button {
  margin-left: auto; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.side__user button:hover { color: var(--text); border-color: var(--muted); }

/* ── main ────────────────────────────────────────────── */
.main { min-width: 0; display: flex; flex-direction: column; }

.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #080d18;
}
.top .brand, .top .top__nav { display: none; }

.page-title { min-width: 0; }
.page-title h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0;
}
.page-title p { font-size: 11.5px; color: var(--faint); margin: 2px 0 0; }

.top__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.menu-btn { display: none; }

.content { padding: 22px 24px 64px; width: 100%; max-width: 1100px; }

.view { display: none; }
.view.is-active { display: block; animation: viewIn .18s ease-out; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.view__head { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.view__head > div { min-width: 0; }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.quick__card {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .022);
}
.quick__card strong { display: block; font-size: 13.5px; }
.quick__card small { display: block; font-size: 11.5px; color: var(--faint); }
.quick__card > div { min-width: 0; }
.quick__card button { margin-left: auto; flex: none; }

.login-wrap { display: grid; place-items: center; min-height: calc(100vh - 200px); }

.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, .55);
}

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; inset: 0 auto 0 0;
    width: 272px; height: 100vh;
    transform: translateX(-102%);
    transition: transform .22s ease;
    z-index: 60;
  }
  .side.is-open { transform: none; box-shadow: 30px 0 60px -30px #000; }
  .menu-btn { display: inline-flex; }
  .top { padding: 12px 16px; }
  .top #skins, .top #ftm-color-btn { display: none !important; }
  .top .clock__sec, .top .clock__zone { display: none; }
  .content { padding: 16px 14px 56px; }
  .page-title p { display: none; }
  .top__tools .pill { display: none; }
}

/* ── komponen panel ──────────────────────────────────── */
.tabs {
  display: flex; gap: 6px; padding: 4px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.tab {
  flex: 1; appearance: none; border: 0; background: transparent;
  color: var(--muted); font-size: 13px; padding: 9px 10px;
  border-radius: 9px; cursor: pointer;
}
.tab.is-active { background: rgba(255, 255, 255, .08); color: var(--text); font-weight: 600; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.sep { height: 1px; background: var(--line); margin: 14px 0; }
.hintline { font-size: 11.5px; color: var(--faint); margin: 0; }

.adminlist { margin: 0; padding: 0; list-style: none; }
.adminlist li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.adminlist li:last-child { border-bottom: 0; }

.tbl-btn {
  appearance: none; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 11.5px; padding: 4px 8px;
  border-radius: 7px; cursor: pointer;
}
.tbl-btn:hover { color: var(--text); border-color: var(--muted); }
.tbl-btn--danger:hover { color: var(--red); border-color: rgba(248, 113, 113, .5); }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }

/* tamu (belum login) */
body.is-guest .side__nav,
body.is-guest .side__foot { display: none; }

.rowhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rowhead strong { display: block; font-size: 13.5px; }
.rowhead > div { min-width: 0; }
