/* ==========================================================
   Gandhinagar University — Live Class Tracker
   Shared design tokens — light theme, gold/navy brand accents
   ========================================================== */

/* "Anderson Grotesk" isn't a standard Google Font — if you have a
   licensed font file for it, add an @font-face rule here pointing at
   your .woff2 and it'll be picked up automatically everywhere via the
   --font-display / --font-body variables below. Space Grotesk + Inter
   are the fallback in the meantime, loaded from Google Fonts. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Core palette — white background, gold + navy brand accents */
  --ink-900: #ffffff;      /* page background */
  --ink-800: #f7f5ee;      /* panel background */
  --ink-700: #ffffff;      /* card / header surface */
  --ink-600: #e5ddc4;      /* borders, dividers */
  --gold-500: #cdad56;     /* university accent */
  --gold-300: #e0c98a;

  --occupied-500: #C0392B;
  --occupied-700: #8f2a20;
  --vacant-500: #1E8449;
  --vacant-700: #15602f;

  --text-100: #1d3459;     /* primary text — brand navy */
  --text-300: #3d5273;
  --text-500: #6b7a99;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: 'Anderson Grotesk', 'Space Grotesk', sans-serif;
  --font-body: 'Anderson Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--ink-900);
  color: var(--text-100);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ----------------------------------------------------------
   Geometric drifting background — a slow, single orchestrated
   motion behind every screen, in the two brand colors.
   ---------------------------------------------------------- */
.geo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.geo-bg svg {
  position: absolute;
  width: 140vw;
  height: 140vh;
  top: -20vh;
  left: -20vw;
  opacity: 0.14;
}
.geo-shape {
  animation: geo-drift 60s linear infinite;
  transform-origin: center;
}
.geo-shape.slow { animation-duration: 90s; animation-direction: reverse; }
.geo-shape.slower { animation-duration: 130s; }

@keyframes geo-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(2vw, -2vh) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .geo-shape { animation: none; }
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Status colors reused across screens */
.status-occupied {
  background: var(--occupied-500);
  color: #fff;
}
.status-vacant {
  background: var(--vacant-500);
  color: #fff;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gold-500); color: var(--text-100); }
.btn-danger { background: var(--occupied-500); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--ink-600); color: var(--text-100); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

input, select, textarea {
  font-family: var(--font-body);
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  color: var(--text-100);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 15px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}
label {
  display: block;
  font-size: 13px;
  color: var(--text-300);
  margin-bottom: 6px;
  font-weight: 500;
}
