/* ALESA SIRIM Admin Dashboard — Custom Styles */

/* Sidebar navigation */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  margin: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.875rem;
  user-select: none;
}
.nav-link:hover {
  color: #e5e7eb;
  background: rgba(255,255,255,0.05);
}
.nav-link.active {
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  font-weight: 600;
}
.nav-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

/* Cards */
.card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Stat cards */
.stat-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.stat-card:hover {
  border-color: #22c55e33;
}

/* Score badge */
.score-high { color: #22c55e; }
.score-mid { color: #eab308; }
.score-low { color: #ef4444; }

/* Status badge */
.badge-active {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}
.badge-revoked {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

/* Table rows */
tbody tr {
  border-bottom: 1px solid #1e293b;
}
tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  z-index: 50;
  animation: slideUp 0.3s ease;
}
.toast-success { background: #166534; color: #dcfce7; border: 1px solid #22c55e44; }
.toast-error { background: #7f1d1d; color: #fecaca; border: 1px solid #ef444444; }

@keyframes slideUp {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Task card in tasks page */
.task-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.15s;
}
.task-card:hover {
  border-color: #334155;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Token reveal */
.token-reveal {
  background: #14532d;
  border: 1px solid #22c55e44;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: monospace;
  font-size: 0.8rem;
  word-break: break-all;
  color: #dcfce7;
}
