/* =============================================
   IMPERIAL STARFIRE — SCI-FI THEME
   Shared across all pages
   ============================================= */

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

body {
  font-family: 'Orbitron', 'Arial', sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1729 100%);
  color: #e0e6ff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.canvas {
	display: block;
}

/* ── Background Effects ───────────────────────────────────────────────────── */

.starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1;   }
}

/* Grid overlay effect */
.grid-overlay {
  shape-rendering: geometricPrecision;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  inset:0;
  pointer-events: none;
        }


.scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 2;
  pointer-events: none;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */

.navtop {
  position: relative;
  z-index: 10;
  background: rgba(10, 14, 39, 0.9);
  border-bottom: 1px solid rgba(100, 200, 255, 0.25);
  padding: 12px 20px;
  backdrop-filter: blur(8px);
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  text-align: center;
  margin-bottom: 8px;
}

.welcome-msg {
  color: #64c8ff;
  font-size: 1.4rem;
  text-align: center;
  margin: 6px 0 10px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nav-links td {
  display: contents; /* dissolve table cells into flex children */
}

/* ── Logo / Branding ─────────────────────────────────────────────────────── */

.logo {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, #64c8ff 0%, #ff6b9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  animation: glow 3s ease-in-out infinite;
  display: inline-block;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(100, 200, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(100, 200, 255, 0.9));
  }
}

.tagline {
  font-size: 1rem;
  color: #64c8ff;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 300;
}

.divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #64c8ff, transparent);
  margin: 20px auto;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #64c8ff;
  color: #64c8ff;
  background: rgba(100, 200, 255, 0.08);
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  /* reset browser button defaults */
  font-family: inherit;
  line-height: 1;
}

.btn i {
  margin-right: 6px;
  font-size: 1em;
}

.btn:hover {
  background: rgba(100, 200, 255, 0.22);
  box-shadow: 0 0 20px rgba(100, 200, 255, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 22px;
  background: transparent;
  color: #00ff9d;
  border: 2px solid #00ff9d;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #00ff9d;
  color: #000;
}

/* ── Page Container ──────────────────────────────────────────────────────── */

.container {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

/* For browser/data pages that should left-align from the top */
.container-browser {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  min-height: auto;
  padding-top: 20px;
}

/* ── Login Box ───────────────────────────────────────────────────────────── */

.login-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(100, 200, 255, 0.3);
  border-radius: 12px;
  padding: 50px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 40px rgba(100, 200, 255, 0.15),
              inset 0 0 20px rgba(100, 200, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* ── Form ────────────────────────────────────────────────────────────────── */

.input-group {
  position: relative;
  margin-bottom: 22px;
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64c8ff;
  font-size: 1.2rem;
  z-index: 2;
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 14px 14px 14px 46px;
  background: rgba(10, 14, 39, 0.9);
  border: 1px solid rgba(100, 200, 255, 0.4);
  border-radius: 6px;
  color: #e0e6ff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input::placeholder {
  color: rgba(200, 210, 255, 0.4);
}

.input-group input:focus {
  outline: none;
  border-color: #64c8ff;
  box-shadow: 0 0 14px rgba(100, 200, 255, 0.5);
  background: rgba(15, 23, 42, 0.95);
}

/* ── Register Link ───────────────────────────────────────────────────────── */

.register-link {
  margin-top: 24px;
  text-align: center;
}

.register-link p {
  color: #aab0cc;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer-info {
  margin-top: 36px;
  font-size: 0.82rem;
  color: #64c8ff;
  opacity: 0.6;
  letter-spacing: 1px;
}

/* ── Bootstrap overrides for dark theme ──────────────────────────────────── */

.accordion-button {
  background-color: #1a2338 !important;
  color: #64c8ff !important;
}

.table-dark {
  --bs-table-bg: #0f1729;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .logo { font-size: 1.4rem; }

  .login-box {
    padding: 36px 20px;
    max-width: 95%;
  }

  .nav-links td {
    display: contents;
  }
}
