/* Command center visual layer: status-led, restrained, and accessible. */

.row.g-3.mb-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.row.g-3.mb-3 > [class*="col-"] { width: auto; }

.topbar-row,
.nav-tabs-bar {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--glass-border);
}
.topbar-row { z-index: 110; }
.nav-tabs-bar { z-index: 100; }

.panel {
  background: var(--gradient-panel);
  border-color: var(--border-color);
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.panel::before { display: none; }
.panel:hover {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), 0 10px 24px rgba(0, 8, 18, 0.12);
}

.logo-icon-box {
  background: rgba(55,182,233,0.14);
  border: 1px solid rgba(55,182,233,0.34);
  box-shadow: none;
}
.logo-mark {
  color: var(--accent-blue);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.12em;
}

.command-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 22px;
}
.eyebrow,
.command-status-label {
  display: block;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.command-header h1 {
  margin: 8px 0 6px;
  color: var(--text-primary);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.command-header p {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.command-status {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 212px;
  padding: 12px 14px;
  background: rgba(66,211,146,0.08);
  border: 1px solid rgba(66,211,146,0.26);
  border-radius: var(--radius-md);
}
.command-status-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(66,211,146,0.17);
  color: var(--accent-green);
  font-weight: 800;
}
.command-status strong { color: var(--accent-green); font-size: 13px; }

.panel-title {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.panel-select,
.form-input {
  border-color: var(--border-color);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.panel-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: var(--glow-blue);
}

.live-badge,
.live-badge-sm {
  box-shadow: none;
  animation: none;
  background: rgba(66,211,146,0.10);
  border-color: rgba(66,211,146,0.28);
}
.dot { animation: status-pulse 2.4s ease-in-out infinite; }
@keyframes status-pulse { 50% { opacity: 0.48; } }

.nav-tab-item {
  border-bottom-width: 2px;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-tab-item::after { display: none; }
.nav-tab-item:hover { background: rgba(147,164,183,0.06); }
.nav-tab-item.active {
  color: var(--accent-blue);
  text-shadow: none;
  border-bottom-color: var(--accent-blue);
}
.nav-tab-item .nav-icon {
  color: currentColor;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 16px;
}

.btn-primary,
.send-btn {
  background: var(--accent-blue);
  box-shadow: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.btn-primary:hover,
.send-btn:hover { background: var(--accent-blue-hover); box-shadow: none; filter: none; }
.btn-primary:active,
.send-btn:active { transform: translateY(1px); }
.btn-lihat-detail,
.theme-tab-inline,
.chat-quick-btn,
.info-chip,
.operator-dropdown { transition: border-color 160ms ease, background-color 160ms ease; }
.btn-lihat-detail:hover,
.theme-tab-inline:hover,
.chat-quick-btn:hover,
.info-chip:hover,
.operator-dropdown:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--accent-blue);
}
.info-chip-icon-box.status-ok { background: rgba(66,211,146,0.13); box-shadow: none; }
.btn-logout:hover { box-shadow: none; transform: none; }

.chat-bubble.ai .chat-bubble-content { background: var(--bg-panel); box-shadow: none; }
.chat-bubble.user .chat-bubble-content { background: var(--accent-blue); box-shadow: none; }
.mic-btn { background: var(--accent-blue); box-shadow: none; }

.chat-window::-webkit-scrollbar,
.nav-tabs-bar::-webkit-scrollbar { height: 6px; width: 6px; }
.chat-window::-webkit-scrollbar-thumb,
.nav-tabs-bar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

@media (max-width: 991px) {
  .row.g-3.mb-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar-row, .nav-tabs-bar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .command-header { align-items: flex-start; flex-direction: column; gap: 16px; padding-bottom: 18px; }
  .command-status { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
