/* ===================================================================
   GLOBAL STYLESHEET (MASTER)
   ===================================================================
   File: css/global.css
   Deskripsi: Berisi semua gaya dasar, variabel, background, komponen,
              dan notifikasi yang digunakan di seluruh website.
   =================================================================== */

/* 1. CSS Custom Properties (Variables) */
:root {
  --font-family-base: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --color-background-start: #141e30;
  --color-background-end: #243b55;
  --color-surface: rgba(30, 41, 59, 0.45);
  --color-text-primary: #ffffff;
  --color-text-secondary: #c0c0e0;
  --color-border: rgba(255, 255, 255, 0.15);
  --color-accent: #38bdf8;
  --color-accent-hover: #7dd3fc;
  --color-danger: #ff4757;
  --shadow-md: 0 50px 80px -20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 80px 100px -20px rgba(0, 0, 0, 0.75);
  --radius-lg: 20px;
  --transition-speed: 0.4s;
}

/* 2. Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(135deg, var(--color-background-start), var(--color-background-end));
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}
.main-wrapper {
  width: 100%;
  height: 100vh;
  overflow-y: auto; /* Memindahkan scrollbar ke wrapper ini */
  overflow-x: hidden;
  position: relative;
  perspective: 1200px; /* PINDAHKAN 'perspective' KE SINI */
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 3. Animasi Bintang Jatuh (Dari login.css) */
.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.shooting-star {
  position: absolute;
  top: -50px;
  left: 50%;
  height: 2px;
  background: linear-gradient(135deg, #59d0ff, transparent);
  border-radius: 999px;
  filter: drop-shadow(0 0 6px #69dffc);
  animation: shoot 3s linear infinite;
}
.shooting-star:nth-child(1) { left: -20%; animation-delay: 0.5s; animation-duration: 3s; }
.shooting-star:nth-child(2) { left: 20%; animation-delay: 1.2s; animation-duration: 2.5s; }
.shooting-star:nth-child(3) { left: 60%; animation-delay: 2.5s; animation-duration: 3.2s; }
.shooting-star:nth-child(4) { left: 90%; animation-delay: 3.5s; animation-duration: 2.8s; }

@keyframes shoot {
  0% { transform: translateY(0) translateX(0) rotate(-45deg); opacity: 1; width: 200px; }
  100% { transform: translateY(calc(100vh + 50px)) translateX(calc(-100vh - 50px)) rotate(-45deg); opacity: 0; width: 0; }
}

/* 4. Komponen Glass Container (Dari login.css) */
.glass-container {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-right-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
}

/* 5. Komponen Tombol (Diadaptasi dari login.css) */
.button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
}
.button-primary {
  background-color: var(--color-accent);
  color: #0f172a;
}
.button-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}
.button-danger {
  background: var(--color-danger);
  color: white;
}
.button-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 65, 108, 0.3);
}

/* 6. Sistem Notifikasi (Dari login.css) */
.notification {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 1000;
  background: rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  color: #e0f2fe;
  padding: 14px 22px;
  font-weight: 500;
  animation: fadeInOut 4s ease-in-out forwards;
}
.notification.error {
  background: rgba(220, 53, 69, 0.25);
  border-color: rgba(220, 53, 69, 0.4);
  color: #f8d7da;
}
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-20px); }
  15% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}