/* ══════════════════════════════════════════
   AKINO MASTER PANEL
══════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }

.am-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Header ── */
.am-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.am-hd-l {
  display: flex;
  align-items: center;
  gap: 14px;
}
.am-logo {
  width: 40px; height: 40px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.am-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}
.am-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.am-hd-r {
  display: flex;
  gap: 12px;
}
.am-stat {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
  min-width: 80px;
}
.am-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.am-stat-lbl {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}

/* ── Toolbar ── */
.am-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.am-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  height: 34px;
  padding: 0 12px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}
.am-search {
  flex: 1;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--text);
  font-family: 'Geist', sans-serif;
  outline: none;
}
.am-search::placeholder { color: var(--muted); }
.am-filters {
  display: flex;
  gap: 4px;
}
.am-filter-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Geist', sans-serif;
  transition: border-color .12s, color .12s, background .12s;
}
.am-filter-btn:hover { border-color: var(--border2); color: var(--text); }
.am-filter-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 500;
}
.am-refresh-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .12s, color .12s;
}
.am-refresh-btn:hover { border-color: var(--border2); color: var(--text); }

/* ── List ── */
.am-list {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.am-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  font-size: 13px;
  color: var(--muted);
}
.am-list-header {
  display: grid;
  grid-template-columns: 2fr 100px 80px 80px 140px 100px;
  gap: 0;
  padding: 10px 20px;
  background: var(--s2);
  border-bottom: 1px solid var(--border);
}
.am-th {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
}
.am-row {
  display: grid;
  grid-template-columns: 2fr 100px 80px 80px 140px 100px;
  gap: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
  align-items: center;
}
.am-row:last-child { border-bottom: none; }
.am-row:hover { background: var(--s2); }

.am-cell {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
}
.am-cell-num {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.am-cell-muted { color: var(--muted); font-size: 12px; }
.am-cell-action { justify-content: flex-end; }
.am-cell-name { gap: 12px; }

.am-ws-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.am-ws-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.am-ws-id {
  font-size: 10.5px;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
}

/* Badges de status */
.am-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.am-badge-ativo   { background: rgba(16,185,129,.1);  color: #10b981; }
.am-badge-inativo { background: var(--s3);             color: var(--muted); }
.am-badge-novo    { background: rgba(14,165,233,.1);  color: #0ea5e9; }

/* Botão entrar */
.am-enter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Geist', sans-serif;
  transition: border-color .12s, color .12s, background .12s;
}
.am-enter-btn:hover {
  border-color: var(--ink);
  color: var(--text);
  background: var(--s2);
}

/* ── Sidebar: ícone master ── */
.sb-item--master {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 58px;
  padding: 8px 4px 7px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s;
  margin: 0 auto;
  flex-shrink: 0;
}
.sb-item--master:hover  { background: var(--sb-item-hover); }
.sb-item--master.active { background: var(--sb-item-active); }
.sb-item--master.active::before {
  content: '';
  position: absolute;
  left: -8px; top: 28%; bottom: 28%;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--sb-indicator);
}
.sb-master-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity .12s;
}
.sb-item--master:hover .sb-master-icon { opacity: .75; }
.sb-item--master .sb-item-label { color: var(--sb-label); }
.sb-item--master.active .sb-item-label { color: var(--sb-label-active); font-weight: 600; }

/* Responsive */
@media (max-width: 700px) {
  .am-list-header,
  .am-row {
    grid-template-columns: 1fr 80px 70px;
  }
  .am-cell:nth-child(3),
  .am-cell:nth-child(5),
  .am-th:nth-child(3),
  .am-th:nth-child(5) { display: none; }
}

/* ── Delete button no painel master ── */
.am-delete-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: none;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
  flex-shrink: 0;
}
.am-delete-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-bg);
}

/* ── ABAS DO MASTER ── */
.am-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.am-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 0;
  font-family: inherit;
  transition: color .12s, border-color .12s;
}
.am-tab-btn:hover { color: var(--text); }
.am-tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--text);
}
