/* AstralCloud shell. Black is the dominant surface. Purple is only for emphasis. */
:root {
  --purple: #7A01E6;
  --purple-2: #9B45F5;
  --bg: #08080B;
  --surface: #17171D;
  --surface-2: #101014;
  --text: #FFFFFF;
  --muted: #A1A1AA;
  --line: #292932;
}
html, body { background: #08080B; color: #FFFFFF; }
body {
  background: #08080B;
  font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
a { color: #FFFFFF; }
.sidebar {
  width: 248px;
  background: #101014;
  border-right: 1px solid #292932;
  box-shadow: none;
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  backdrop-filter: none;
}
.brand { display: block; padding: 4px 8px 18px; }
.brand-logo { width: 168px; max-height: 40px; }
.side-nav { display: grid; align-content: start; gap: 4px; overflow: auto; padding-right: 2px; }
.nav-label {
  margin: 16px 12px 6px;
  color: #A1A1AA;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-link, .side-nav a {
  color: #A1A1AA;
  border-radius: 8px;
  padding: 9px 12px;
  background: transparent;
}
.nav-link:hover, .side-nav a:hover { background: #17171D; color: #FFFFFF; }
.nav-link.active, .side-nav a.active { background: #7A01E6; color: #FFFFFF; }
.nav-group { border: 0; }
.nav-group summary {
  cursor: pointer;
  list-style: none;
  padding: 9px 12px;
  color: #FFFFFF;
  font-weight: 650;
  border-radius: 8px;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: #17171D; }
.nav-sub { display: grid; gap: 2px; margin: 2px 0 8px; padding-left: 8px; }
.nav-sub .nav-link { padding: 7px 10px; font-size: 13px; }
.sidebar-user {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 8px 8px;
  border-top: 1px solid #292932;
}
.sidebar-user small { display: block; color: #A1A1AA; font-weight: 500; }
.logout-form { margin: 0; }
.logout-form button { width: 100%; }
.main-wrap { margin-left: 248px; width: calc(100% - 248px); background: #08080B; }
.topbar {
  height: 64px;
  background: #08080B;
  border-bottom: 1px solid #292932;
  box-shadow: none;
  padding: 0 22px;
}
.topbar-title { color: #FFFFFF; font-weight: 650; }
.content { max-width: 1180px; }
.context-bar {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid #292932;
  border-radius: 10px;
  background: #101014;
  color: #A1A1AA;
}
.card, .login-card {
  background: #17171D;
  border: 1px solid #292932;
  box-shadow: none;
  border-radius: 12px;
}
.page-head h1, .card h2, .card h3, .metric { color: #FFFFFF; }
.page-head p, .muted, .metric-label, .metric-foot, .field small { color: #A1A1AA; }
button, .button {
  background: #7A01E6;
  border: 1px solid #7A01E6;
  color: #FFFFFF;
  box-shadow: none;
  border-radius: 8px;
}
button:hover, .button:hover { background: #9B45F5; border-color: #9B45F5; transform: none; filter: none; }
button.ghost, .button.ghost {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid #292932;
}
button.ghost:hover, .button.ghost:hover { background: #17171D; border-color: #9B45F5; }
.danger { background: #8f243c; border-color: #8f243c; }
input, select, textarea {
  background: #101014;
  border: 1px solid #292932;
  color: #FFFFFF;
  border-radius: 8px;
}
input:focus, select:focus, textarea:focus { border-color: #7A01E6; box-shadow: 0 0 0 3px #7A01E633; }
.field label { color: #FFFFFF; font-weight: 650; }
table th { color: #A1A1AA; }
table td { color: #FFFFFF; border-bottom-color: #292932; }
.alert { background: #17171D; border: 1px solid #292932; color: #FFFFFF; }
.status.ok { color: #8ee0b8; background: #10281d; }
.quota-track { background: #101014; }
.quota-fill { background: #7A01E6; }
.metric-icon { background: #101014; color: #9B45F5; }
.login-page { background: #08080B; }
.login-card h1 { color: #FFFFFF; }
.chart .bar { background: #7A01E6; }
.collapse-toggle { display: inline-flex; }
body.nav-collapsed .sidebar { width: 84px; }
body.nav-collapsed .main-wrap { margin-left: 84px; width: calc(100% - 84px); }
body.nav-collapsed .label,
body.nav-collapsed .nav-label,
body.nav-collapsed .sidebar-user small,
body.nav-collapsed .sidebar-user b { display: none; }
body.nav-collapsed .brand-logo { width: 42px; object-fit: cover; object-position: left center; }
body.nav-collapsed .nav-group summary { font-size: 0; }
body.nav-collapsed .nav-group summary::before { content: "•"; font-size: 14px; color: #9B45F5; }
body.nav-collapsed .logout-form button { font-size: 0; }
body.nav-collapsed .logout-form button::before { content: "Sair"; font-size: 12px; }
[data-theme='light'] body, [data-theme='light'] .main-wrap, [data-theme='light'] .topbar { background: #F4F4F5; color: #18181B; }
[data-theme='light'] .sidebar { background: #FFFFFF; }
[data-theme='light'] .card { background: #FFFFFF; }
[data-theme='light'] .brand-logo { background: #08080B; border-radius: 8px; padding: 6px; }
[data-theme='light'] .nav-link, [data-theme='light'] .side-nav a { color: #3F3F46; }
[data-theme='light'] .nav-link.active { color: #FFFFFF; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-110%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .main-wrap, body.nav-collapsed .main-wrap { margin-left: 0; width: 100%; }
  .collapse-toggle { display: none; }
  .span-3, .span-4, .span-6, .span-8, .span-12 { grid-column: span 12; }
  .content { padding: 18px 14px; }
  .topbar { padding: 0 12px; }
}
@media (min-width: 901px) {
  .menu-toggle { display: none !important; }
}
