/* ==========================================================================
   Artificial Intelligence & Data Mining Exhibition December 2026
   Design System — UiTM Royal Obsidian, Imperial Violet & Warm Gold
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-base: #090714;
  --bg-surface: #120e24;
  --bg-elevated: #191432;
  --bg-subtle: #221b42;

  --border-subtle: rgba(196, 181, 253, 0.12);
  --border-strong: rgba(234, 179, 8, 0.34);
  --border-violet: rgba(139, 92, 246, 0.38);

  --text-primary: #f7f5ff;
  --text-secondary: #cbc3e8;
  --text-muted: #9a90bd;

  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #6d28d9;

  --track-ann: #3b82f6;
  --track-fuzzy: #14b8a6;
  --track-rule: #f59e0b;
  --track-ga: #10b981;
  --track-dm: #e879f9;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-soft: 0 14px 34px -10px rgba(4, 2, 12, 0.65);
  --shadow-elevated: 0 22px 48px -12px rgba(4, 2, 12, 0.8);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(234, 179, 8, 0.28);
  color: #fef9c3;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #2f2659;
  border-radius: 999px;
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: #463882;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold-400);
}

body {
  min-height: 100vh;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(109, 40, 217, 0.32), transparent 65%),
    radial-gradient(ellipse 50% 35% at 90% 15%, rgba(234, 179, 8, 0.10), transparent 60%);
  color: var(--text-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--text-primary);
}

p {
  max-width: 70ch;
}

.mono, code {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 7, 20, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 340px;
}

.brand-sub {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: transform 180ms var(--ease-out-expo), opacity 180ms var(--ease-out-expo), background-color 180ms var(--ease-out-expo), color 180ms var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(167, 139, 250, 0.12);
}

.nav-link.active {
  color: #fef9c3;
  background: rgba(234, 179, 8, 0.14);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease-out-expo), opacity 180ms var(--ease-out-expo), background-color 180ms var(--ease-out-expo), border-color 180ms var(--ease-out-expo);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-gold {
  background: var(--gold-500);
  color: #171103;
  box-shadow: 0 10px 24px -8px rgba(234, 179, 8, 0.55);
}
.btn-gold:hover:not(:disabled) {
  background: var(--gold-400);
  transform: translateY(-1px);
}

.btn-violet {
  background: var(--violet-600);
  color: #ffffff;
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 10px 24px -8px rgba(109, 40, 217, 0.6);
}
.btn-violet:hover:not(:disabled) {
  background: var(--violet-500);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(167, 139, 250, 0.12);
  border-color: var(--border-violet);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.badge-online {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.badge-gold {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border-color: rgba(234, 179, 8, 0.38);
}

.badge-violet {
  background: rgba(139, 92, 246, 0.18);
  color: #ddd6fe;
  border-color: rgba(139, 92, 246, 0.4);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Surfaces & Panels */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.panel-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-elevated);
}

/* Form Elements */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.field .hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #0d0a1c;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  transition: border-color 160ms var(--ease-out-expo), background-color 160ms var(--ease-out-expo);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: #130f29;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th {
  text-align: left;
  padding: 13px 16px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(167, 139, 250, 0.05);
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 44px 0;
  border-top: 1px solid var(--border-subtle);
  background: #06050e;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-elevated);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms var(--ease-out-expo), opacity 220ms var(--ease-out-expo);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Entrance motion */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeSlideUp 460ms var(--ease-out-expo) both;
}

@media (max-width: 860px) {
  .nav-inner {
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-title {
    max-width: 100%;
  }
  .panel, .panel-elevated {
    padding: 20px;
  }
}
