/* ── CSS VARIABLES ── */
:root {
  --bg: #0e1117;
  --bg2: #161b27;
  --bg3: #1e2535;
  --bg4: #252d40;
  --border: #2a3347;
  --border2: #334166;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --purple: #a855f7;
  --cyan: #06b6d4;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --sidebar-w: 260px;
  --toolbar-h: 42px;
  --tab-h: 36px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
}

/* ── SCROLLBARS ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}

/* ── LOADING SPINNER ── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

/* ── TOOLTIP ── */
[data-tip] {
  position: relative;
}
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a2236;
  color: var(--text);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid var(--border2);
  z-index: 999;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}
.badge.pk {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.badge.fk {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
}
.badge.idx {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
}
.badge.nn {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}
.badge.uq {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

/* ── NOTIFICATIONS ── */
#notifs {
  position: fixed;
  top: 52px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
}
.notif {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.25s ease;
  pointer-events: all;
}
.notif.success {
  border-left: 3px solid var(--green);
}
.notif.error {
  border-left: 3px solid var(--red);
}
.notif.info {
  border-left: 3px solid var(--accent);
}
@keyframes slideIn {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── EMPTY STATE ── */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text3);
}
.empty-state .es-icon {
  font-size: 48px;
  opacity: 0.2;
}
.empty-state .es-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
}
.empty-state .es-sub {
  font-size: 12.5px;
  max-width: 280px;
  text-align: center;
  line-height: 1.5;
}

/* ── SECTION TITLE ── */
.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
