/* =====================================================
   KACA KRISTAL BIRU — Premium Glassmorphism + Soft Neumorphism
   Dipakai oleh: index.php (landing publik) & login.php
   ===================================================== */
:root {
  --gc-deep:      #061229;
  --gc-navy:      #0b1e42;
  --gc-blue:      #123a7a;
  --gc-azure:     #2f6fe0;
  --gc-sky:       #63b8ff;
  --gc-ice:       #d6ecff;
  --gc-white:     #ffffff;
  --gc-glass:     rgba(255, 255, 255, 0.10);
  --gc-glass-hi:  rgba(255, 255, 255, 0.20);
  --gc-glass-brd: rgba(255, 255, 255, 0.35);
  --gc-text:      #eaf4ff;
  --gc-text-dim:  #a9c3ea;
  --gc-shadow-d:  rgba(2, 8, 22, 0.55);
  --gc-shadow-l:  rgba(255, 255, 255, 0.08);
  --gc-radius:    22px;
  --gc-radius-sm: 14px;
}

* { box-sizing: border-box; }

html, body.gc-body {
  max-width: 100%;
  overflow-x: hidden;
}

body.gc-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: var(--gc-text);
  background:
    radial-gradient(circle at 12% 8%,  rgba(99,184,255,0.30), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(47,111,224,0.35), transparent 45%),
    radial-gradient(circle at 20% 92%, rgba(18,58,122,0.55), transparent 50%),
    radial-gradient(circle at 85% 88%, rgba(99,184,255,0.20), transparent 45%),
    linear-gradient(160deg, var(--gc-deep) 0%, var(--gc-navy) 45%, var(--gc-blue) 100%);
  background-attachment: fixed;
  position: relative;
}

/* Floating crystal orbs (decorative, non-interactive) */
.gc-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  animation: gc-float 14s ease-in-out infinite;
}
.gc-orb--1 { width: 340px; height: 340px; top: -80px; left: -100px; background: radial-gradient(circle, var(--gc-sky), transparent 70%); }
.gc-orb--2 { width: 420px; height: 420px; bottom: -140px; right: -120px; background: radial-gradient(circle, var(--gc-azure), transparent 70%); animation-delay: -6s; }
.gc-orb--3 { width: 260px; height: 260px; top: 40%; right: 8%; background: radial-gradient(circle, var(--gc-ice), transparent 70%); opacity: 0.25; animation-delay: -3s; }

@keyframes gc-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-24px) translateX(14px); }
}

/* ===================== GLASS SURFACES ===================== */
.gc-glass {
  position: relative;
  z-index: 1;
  background: linear-gradient(155deg, var(--gc-glass-hi), var(--gc-glass) 60%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--gc-glass-brd);
  border-radius: var(--gc-radius);
  box-shadow:
    0 8px 32px var(--gc-shadow-d),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.15);
}

.gc-glass--soft {
  background: linear-gradient(155deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05) 65%);
  border-radius: var(--gc-radius-sm);
}

/* ===================== NAVBAR ===================== */
.gc-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 28px;
  margin: 16px auto 0;
  max-width: 1180px;
  border-radius: 20px;
}

.gc-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.gc-nav-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
  flex-shrink: 0;
}
.gc-nav-brand .gc-brand-text { line-height: 1.2; min-width: 0; }
.gc-nav-brand strong {
  display: block;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  color: var(--gc-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-nav-brand span {
  display: block;
  font-size: 11.5px;
  color: var(--gc-text-dim);
}

/* ===================== BUTTONS ===================== */
.gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 13px;
  border: 1px solid var(--gc-glass-brd);
  background: linear-gradient(155deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  color: var(--gc-white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(2,8,22,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.gc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2,8,22,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}
.gc-btn:active { transform: translateY(0); }

.gc-btn--primary {
  background: linear-gradient(135deg, var(--gc-sky), var(--gc-azure));
  border-color: rgba(255,255,255,0.45);
  color: #04152f;
  box-shadow: 0 6px 20px rgba(47,111,224,0.55), inset 0 1px 0 rgba(255,255,255,0.5);
}
.gc-btn--primary:hover { box-shadow: 0 10px 26px rgba(47,111,224,0.7), inset 0 1px 0 rgba(255,255,255,0.6); }

.gc-btn--block { width: 100%; }
.gc-btn--sm { padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }

/* ===================== NEUMORPHIC INPUTS (on dark glass) ===================== */
.gc-field { display: flex; flex-direction: column; gap: 7px; }
.gc-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gc-text-dim);
  letter-spacing: 0.3px;
  padding-left: 2px;
}

.gc-neu-wrap { position: relative; }

.gc-neu-input,
select.gc-neu-input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 13px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--gc-text);
  background: rgba(6, 18, 41, 0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--gc-radius-sm);
  box-shadow:
    inset 5px 5px 10px rgba(0,0,0,0.35),
    inset -5px -5px 10px rgba(255,255,255,0.04);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.gc-neu-input::placeholder { color: rgba(234,244,255,0.45); }
.gc-neu-input:focus {
  border-color: var(--gc-sky);
  box-shadow:
    inset 4px 4px 8px rgba(0,0,0,0.35),
    inset -4px -4px 8px rgba(255,255,255,0.05),
    0 0 0 3px rgba(99,184,255,0.25);
}
select.gc-neu-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%2363B8FF' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
select.gc-neu-input option { background: #0b1e42; color: var(--gc-text); }

.gc-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gc-sky); pointer-events: none; }
.gc-neu-input.has-icon { padding-left: 42px; }
.gc-toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gc-text-dim);
  cursor: pointer;
  font-size: 15px;
}

/* ===================== LOGIN CARD ===================== */
.gc-login-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.gc-login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 34px 34px;
  text-align: center;
}
.gc-login-logo { width: 78px; height: 78px; margin: 0 auto 16px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4)); }
.gc-login-card h1 { font-size: 19px; font-weight: 700; color: var(--gc-white); margin-bottom: 4px; line-height: 1.35; }
.gc-login-card .gc-subtitle { font-size: 13px; color: var(--gc-text-dim); margin-bottom: 26px; }
.gc-login-card form { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.gc-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.2);
}
.gc-alert--warn { background: rgba(245, 158, 11, 0.18); color: #ffe4b0; }
.gc-alert--error { background: rgba(239, 68, 68, 0.18); color: #ffc4c4; }
.gc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--gc-text-dim);
  text-decoration: none;
}
.gc-back-link:hover { color: var(--gc-sky); }

/* ===================== LANDING: HERO ===================== */
.gc-shell { max-width: 1180px; margin: 0 auto; padding: 0 20px 60px; position: relative; z-index: 1; }

.gc-hero {
  text-align: center;
  padding: 56px 24px 40px;
}
.gc-hero-logo { width: 92px; height: 92px; margin: 0 auto 18px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.45)); }
.gc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gc-sky);
  background: rgba(99,184,255,0.12);
  border: 1px solid rgba(99,184,255,0.35);
  margin-bottom: 18px;
}
.gc-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--gc-white);
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.gc-hero p { font-size: 15px; color: var(--gc-text-dim); max-width: 560px; margin: 0 auto; }

/* ===================== FILTER PANEL ===================== */
.gc-filter-panel { padding: 26px 26px 22px; margin-bottom: 32px; }
.gc-filter-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gc-white);
  margin-bottom: 18px;
}
.gc-filter-title i { color: var(--gc-sky); }
.gc-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}
.gc-filter-grid .gc-btn { height: 47px; margin-top: auto; }

/* ===================== RESULTS ===================== */
.gc-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.gc-results-head h2 { font-size: 17px; color: var(--gc-white); font-weight: 700; }
.gc-results-count { font-size: 12.5px; color: var(--gc-text-dim); }

.gc-day-group { margin-bottom: 28px; }
.gc-day-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #04152f;
  background: linear-gradient(135deg, var(--gc-sky), var(--gc-ice));
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(99,184,255,0.35);
}

.gc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.gc-schedule-card {
  padding: 18px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gc-schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px var(--gc-shadow-d), inset 0 1px 0 rgba(255,255,255,0.3);
}
.gc-card-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gc-sky);
  margin-bottom: 10px;
}
.gc-card-mapel { font-size: 16px; font-weight: 700; color: var(--gc-white); margin-bottom: 10px; line-height: 1.3; }
.gc-card-meta { display: flex; flex-direction: column; gap: 6px; }
.gc-card-meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--gc-text-dim);
}
.gc-card-meta-row i { width: 15px; color: var(--gc-sky); text-align: center; }
.gc-chip {
  display: inline-flex;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--gc-ice);
}

.gc-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--gc-text-dim);
}
.gc-empty i { font-size: 34px; color: var(--gc-sky); margin-bottom: 14px; opacity: 0.8; }

/* ===================== FOOTER ===================== */
.gc-footer {
  text-align: center;
  padding: 26px 20px 10px;
  color: var(--gc-text-dim);
  font-size: 12.5px;
  position: relative;
  z-index: 1;
}
.gc-footer a { color: var(--gc-sky); text-decoration: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
  .gc-nav { padding: 12px 16px; margin-top: 10px; border-radius: 16px; }
  .gc-nav-brand strong { font-size: 12.5px; }
  .gc-nav-brand span { font-size: 10px; }
  .gc-hero { padding: 38px 12px 28px; }
  .gc-filter-panel { padding: 20px 16px 18px; }
  .gc-login-card { padding: 32px 22px 26px; }
}
