/* GodEye ESG – app.css */

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* ── Navigation items ── */
.nav-item {
  color: #64748b;          /* slate-500 */
}
.nav-item:hover {
  background-color: rgba(226,232,240,.5);  /* slate-200/50 */
  color: #0f172a;
}
.nav-item-active {
  background-color: #fff;
  color: #2563eb;          /* blue-600 */
  border-left: 3px solid #2563eb;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* ── Sidebar transition (mobile) ── */
@media (max-width: 1023px) {
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.open {
    transform: translateX(0);
  }
}

/* ── Inset shadow helper ── */
.inset-shadow-sm {
  box-shadow: inset 0 2px 4px rgba(0,0,0,.05);
}

/* ── Score badges ── */
.score-high   { color: #006c49; background-color: #6cf8bb33; }
.score-medium { color: #b45309; background-color: #fef3c733; }
.score-low    { color: #ba1a1a; background-color: #ffdad633; }

/* ── Metric cards ── */
.metric-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}
.metric-card:hover {
  box-shadow: 0 4px 16px rgba(0,81,179,.08);
  transform: translateY(-1px);
}

/* ── Bar chart bars ── */
.chart-bar-inner {
  background-color: rgba(37,99,235,.18);
  border-top: 2px solid #2563eb;
  border-radius: 2px 2px 0 0;
  transition: background-color .2s;
}
.chart-bar-inner:hover {
  background-color: rgba(37,99,235,.35);
}
.chart-bar-active {
  background-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}

/* ── Signal log rows ── */
.signal-row-error { background-color: rgba(254,226,226,.4); }

/* ── Range input ── */
input[type=range] {
  accent-color: #2563eb;
}

/* ── Scrollbar (webkit) ── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp .35s ease both;
}
.delay-100 { animation-delay: .10s; }
.delay-200 { animation-delay: .20s; }
.delay-300 { animation-delay: .30s; }

/* ── Pulse dot ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
.pulse-dot {
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* ── Toast notifications ── */
#toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: .5rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: #1e293b;
  color: #f8fafc;
  border-radius: .5rem;
  font-size: .875rem;
  font-family: 'Kanit', sans-serif;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  animation: fadeInUp .25s ease both;
  max-width: 320px;
}
.toast.success { border-left: 3px solid #4edea3; }
.toast.error   { border-left: 3px solid #f87171; }
.toast.info    { border-left: 3px solid #60a5fa; }
