/* Veriflow / DeviceCredit on XDC — App Styles */

/* ── Material Symbols tuning ── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
  font-size: 18px;
}

/* ── Base ── */
body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Utility ── */
.serif-italic {
  font-family: 'Abhaya Libre', serif;
  font-style: italic;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Sidebar ── */
.sidebar-nav {
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar {
  display: none;
}

/* ── Chart placeholder bars ── */
.chart-bar {
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Pulse animation for status dots ── */
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-dot-pulse {
  animation: status-pulse 2s ease-in-out infinite;
}

/* ── Active nav indicator ── */
.nav-item-active {
  color: #5570e7;
  border-right: 2px solid #5570e7;
  background: rgba(85, 112, 231, 0.05);
}

/* ── Table row hover ── */
.case-row {
  transition: background-color 0.15s ease;
}
.case-row:hover {
  background-color: rgba(241, 245, 249, 0.8);
}
.case-row-selected {
  background-color: rgba(85, 112, 231, 0.06);
  border-left: 3px solid #5570e7;
}
.case-row-selected:hover {
  background-color: rgba(85, 112, 231, 0.10);
}

/* ── Badge system ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 8px;
  font-weight: 700;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge-verified {
  background: #5570e7;
  color: white;
}
.badge-market-open {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.badge-active-error {
  background: #ba1a1a;
  color: white;
}
.badge-risk-good {
  background: rgba(85, 112, 231, 0.1);
  color: #5570e7;
}
.badge-risk-neutral {
  background: #f1f5f9;
  color: #64748b;
}
.badge-risk-positive {
  background: #f0fdf4;
  color: #15803d;
}
.badge-pending {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-re-audit {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.badge-in-progress {
  background: rgba(85, 112, 231, 0.08);
  color: #5570e7;
  border: 1px solid rgba(85, 112, 231, 0.2);
}

/* ── Registry table rows ── */
.registry-row {
  transition: background-color 0.15s ease;
  cursor: pointer;
}
.registry-row:hover {
  background-color: rgba(241, 245, 249, 0.8);
}
.registry-row-selected {
  background-color: rgba(85, 112, 231, 0.06);
  border-left: 3px solid #5570e7;
}
.registry-row-selected:hover {
  background-color: rgba(85, 112, 231, 0.10);
}

/* ── Drawer panel transitions ── */
.drawer-panel {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-closed {
  transform: translateX(100%);
  box-shadow: none;
}

/* Main content responds to drawer state */
.main-with-drawer {
  transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-drawer-open {
  margin-right: 520px;
}
.main-drawer-closed {
  margin-right: 0 !important;
}

/* ── Filter tabs ── */
.filter-tab-active {
  background: #5570e7;
  color: white;
}
.filter-tab-inactive {
  background: #f1f5f9;
  color: #475569;
}
.filter-tab-inactive:hover {
  background: #e2e8f0;
}

/* ── Notification dropdown ── */
.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  width: 320px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 60;
}

/* ── Drawer and registry scrollbar ── */
.drawer-scroll::-webkit-scrollbar,
.registry-scroll::-webkit-scrollbar {
  width: 4px;
}
.drawer-scroll::-webkit-scrollbar-track,
.registry-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.drawer-scroll::-webkit-scrollbar-thumb,
.registry-scroll::-webkit-scrollbar-thumb {
  background: #c4c6cf;
  border-radius: 10px;
}
.drawer-scroll,
.registry-scroll {
  scrollbar-width: thin;
  scrollbar-color: #c4c6cf transparent;
}
