/* Aurora 4-color design tokens (emerald/gold/sky/rose) + component effects,
   salvaged from the abandoned React+Tailwind pilot (frontend/src/styles/aurora.css)
   before that folder was deleted. Rewritten as plain CSS — no Tailwind/build step
   required — for reuse in the Vuexy-based redesign. */

:root {
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;

  --color-gold-50: #fffbeb;
  --color-gold-100: #fef3c7;
  --color-gold-200: #fde68a;
  --color-gold-300: #fcd34d;
  --color-gold-400: #fbbf24;
  --color-gold-500: #f59e0b;
  --color-gold-600: #d97706;

  --color-sky-50: #eff6ff;
  --color-sky-100: #dbeafe;
  --color-sky-400: #60a5fa;
  --color-sky-500: #3b82f6;
  --color-sky-600: #2563eb;

  --color-rose-50: #fef2f2;
  --color-rose-100: #fee2e2;
  --color-rose-400: #f87171;
  --color-rose-500: #ef4444;
  --color-rose-600: #dc2626;

  --font-aurora-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

/* Soft blurred colour blobs behind page content — the "aurora" glow.
   Usage: <div class="aurora-backdrop"><span class="aurora-blob ..."></span>...</div> */
.aurora-backdrop {
  pointer-events: none;
  position: fixed;
  inset: 0;
  /* z-index:0, NOT a negative value — every page using this class sits its
     content in normal DOM flow right after this div with no explicit
     z-index, so a negative value here would paint the backdrop BEHIND the
     page's own solid background (body/content backgrounds always paint
     before positioned descendants regardless of value), making every blob
     invisible. This bit every one of the 4 pages that used this class
     before they each added their own `style="z-index:0"` override — fixed
     at the source instead of relying on every caller to remember it. */
  z-index: 0;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
  opacity: 0.4;
  will-change: transform;
  animation: aurora-float 16s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .aurora-blob {
    animation: none;
  }
}

/* White card with a faint 4-colour aurora bloom bleeding in from the corners
   instead of flat white. */
.aurora-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.7);
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(226, 232, 240, 0.5);
  transition: box-shadow 300ms;
  background-image:
    radial-gradient(120% 90% at 0% 0%, rgba(16, 185, 129, 0.07), transparent 55%),
    radial-gradient(120% 90% at 100% 0%, rgba(245, 158, 11, 0.06), transparent 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(59, 130, 246, 0.05), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(239, 68, 68, 0.05), transparent 55%);
}
.aurora-card:hover {
  box-shadow: 0 4px 6px -1px rgba(226, 232, 240, 0.6), 0 2px 4px -2px rgba(226, 232, 240, 0.6);
}

/* Divider-with-line-through-text (used for a "Tahun Ajaran"-style label). */
.aurora-divider {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}
.aurora-divider::before,
.aurora-divider::after {
  content: '';
  height: 1px;
  flex-shrink: 0;
  flex-basis: 1rem;
  background-color: #e2e8f0;
}
.aurora-divider span {
  min-width: 0;
  flex: 1 1 0%;
  padding: 0 0.75rem;
  text-align: center;
}

/* Soft colour glow (box-shadow halo), e.g. for badges/avatars. */
.aurora-glow-emerald { box-shadow: 0 0 12px rgba(16, 185, 129, 0.55); }
.aurora-glow-gold { box-shadow: 0 0 12px rgba(245, 158, 11, 0.55); }
.aurora-glow-sky { box-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
.aurora-glow-rose { box-shadow: 0 0 12px rgba(239, 68, 68, 0.5); }

.aurora-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background-color: var(--color-emerald-600);
  padding: 0.625rem 1rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 150ms, box-shadow 150ms, transform 150ms;
  border: none;
  cursor: pointer;
}
.aurora-btn-primary:hover {
  background-color: var(--color-emerald-700);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.aurora-btn-primary:active {
  transform: scale(0.98);
}
.aurora-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-emerald-500);
}
.aurora-btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.aurora-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  padding: 0.625rem 1rem;
  font-weight: 500;
  color: #334155;
  transition: border-color 150ms, background-color 150ms, transform 150ms;
  cursor: pointer;
}
.aurora-btn-outline:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
}
.aurora-btn-outline:active {
  transform: scale(0.98);
}
.aurora-btn-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-emerald-500);
}

.aurora-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #1e293b;
  transition: border-color 150ms, box-shadow 150ms;
}
.aurora-input::placeholder {
  color: #94a3b8;
}
.aurora-input:focus {
  border-color: var(--color-emerald-500);
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Skeleton loading placeholders */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: rgba(226, 232, 240, 0.7);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: aurora-shimmer 1.6s infinite;
}

@keyframes aurora-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -28px) scale(1.06); }
}

@keyframes aurora-shimmer {
  100% { transform: translateX(100%); }
}

/* ---------------------------------------------------------------------
   Detail-view helpers (profile hero, definition-list grid, section
   titles, pill chips, pill tab bar) — Fase 2 progressive redesign.
   Plain CSS, reused across server-rendered detail/profile pages instead
   of repeating long tw- utility strings on every field. First used on
   tatausaha/lihat_dataalumni.php.
   --------------------------------------------------------------------- */

.aurora-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--color-emerald-50), #fff 55%, var(--color-sky-50));
  border: 1px solid rgba(226, 232, 240, 0.7);
  padding: 1.5rem;
}
.aurora-hero::before,
.aurora-hero::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(50px);
  opacity: 0.5;
  pointer-events: none;
}
.aurora-hero::before {
  width: 220px;
  height: 220px;
  background: var(--color-emerald-400);
  top: -90px;
  left: -60px;
}
.aurora-hero::after {
  width: 200px;
  height: 200px;
  background: var(--color-gold-300);
  bottom: -80px;
  right: -40px;
}

.aurora-avatar {
  position: relative;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 8px 20px -6px rgba(15, 23, 42, 0.25);
}

.aurora-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.aurora-chip-emerald { background: var(--color-emerald-50); color: var(--color-emerald-700); border-color: var(--color-emerald-100); }
.aurora-chip-gold    { background: var(--color-gold-50);    color: #92400e;                  border-color: var(--color-gold-200); }
.aurora-chip-sky     { background: var(--color-sky-50);     color: var(--color-sky-600);      border-color: var(--color-sky-100); }
.aurora-chip-rose    { background: var(--color-rose-50);    color: var(--color-rose-600);     border-color: var(--color-rose-100); }
.aurora-chip-slate   { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }

.aurora-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.9rem;
}
.aurora-section-title i { color: var(--color-emerald-600); }

.aurora-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2rem;
}
.aurora-dl.aurora-dl-1col { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .aurora-dl { grid-template-columns: 1fr 1fr; }
}
.aurora-dl-item {
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed #e2e8f0;
}
.aurora-dl-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
.aurora-dl-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  word-break: break-word;
}
.aurora-dl-value.is-empty { color: #cbd5e1; font-weight: 400; font-style: italic; }

/* Pill-segmented tab bar — purely visual skin over Bootstrap's existing
   nav-tabs/data-toggle="tab" mechanism, no behaviour change. */
.aurora-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  background: #f1f5f9;
  border-radius: 0.9rem;
  border: none;
}
.aurora-tabs .nav-item { flex: 1 1 auto; }
.aurora-tabs .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.65rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
  white-space: nowrap;
  transition: background-color 150ms, color 150ms, box-shadow 150ms;
}
.aurora-tabs .nav-link:hover { color: var(--color-emerald-700); }
.aurora-tabs .nav-link.active {
  background: #fff;
  color: var(--color-emerald-700);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.12);
}
@media (max-width: 767.98px) {
  .aurora-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .aurora-tabs .nav-link span { display: none; }
  .aurora-tabs .nav-link i { font-size: 1.1rem; }
}
