/* ════════════════════════════════════════════════════
   AIOU Pipeline — Shared Stylesheet
   Loaded by all 5 dashboard templates.
   Page-specific overrides stay in each template's <style>.
════════════════════════════════════════════════════ */

/* ── BODY ── */
body {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #93c5fd 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Poppins', -apple-system, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── MAIN CONTENT WRAPPER ── */
/* .main layout now handled by theme.css and sidebar.js layout detection */

/* ── PAGE HEADER ── */
/* ── ADMIN PILL ── */
.admin-pill {
  background: rgba(37,99,235,0.14);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ── CARD ── */
.card {
  background: rgba(255,255,255,0.98);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── STATUS PILLS ── */
.pill-pass    { background: #d1fae5; color: #065f46; }
.pill-reappear{ background: #fee2e2; color: #991b1b; }
.pill-continue{ background: #dbeafe; color: #1d4ed8; }

/* ── BUTTONS ── */
.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-primary:hover { background: #1d4ed8; }

/* ── STAT CARD ── */
.stat-card-shared {
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-num-shared {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}
.stat-lbl-shared {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}
.stat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stat-dot.blue   { background: #2563eb; }
.stat-dot.green  { background: #10b981; }
.stat-dot.red    { background: #ef4444; }
.stat-dot.amber  { background: #f59e0b; }
.stat-dot.purple { background: #8b5cf6; }

/* ── TOAST ── */
#toast-wrap, #toast-container, #toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 6px;
}
.t-msg, .toast {
  font-size: 12.5px; font-weight: 600; color: #fff;
  padding: 11px 16px; border-radius: 10px;
  animation: slideIn 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.t-msg.ok,  .toast.ok   { background: #059669; }
.t-msg.err, .toast.err  { background: #dc2626; }
.t-msg.info,.toast.info { background: #2563eb; }

@keyframes slideIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── GLOBAL ALERT BAR ── */
#global-alert {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: #fff; padding: 8px 16px; font-size: 11px; font-weight: 600;
  display: none; align-items: center; gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
#global-alert.show { display: flex; }
#global-alert .spinner {
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
#global-alert .progress { flex: 1; height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
#global-alert .progress-fill { height: 100%; background: #fff; border-radius: 2px; transition: width .3s; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  #sidenav { display: none; }
  .main { margin-left: 0 !important; padding: 16px; }
}
