@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root, [data-bs-theme="dark"] {
  --primary: #00d2ff;
  --primary-glow: rgba(0, 210, 255, 0.4);
  --secondary: #9d50bb;
  --accent: #ff007a;
  --bg-deep: #050810;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-white: #f8fafc;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);

  /* Override Bootstrap standard variables to enforce dark theme */
  --bs-body-bg: #050810 !important;
  --bs-body-bg-rgb: 5, 8, 16 !important;
  --bs-body-color: #ffffff !important;
  --bs-body-color-rgb: 255, 255, 255 !important;
  --bs-tertiary-bg: rgba(255, 255, 255, 0.05) !important;
  --bs-secondary-bg: rgba(255, 255, 255, 0.03) !important;
  --bs-card-bg: rgba(255, 255, 255, 0.03) !important;
  --bs-card-color: #ffffff !important;
  --bs-modal-bg: #080c18 !important;
  --bs-modal-color: #ffffff !important;
  --bs-border-color: rgba(255, 255, 255, 0.08) !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font-body);
  background-color: #050810 !important;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(157, 80, 187, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(0, 210, 255, 0.05) 0%, transparent 50%) !important;
  background-attachment: fixed !important;
  color: #ffffff !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff !important;
}

/* Ensure components don't fall back to light mode backgrounds */
.card, .stat-card, .eng-card, .growth-card, .school-card, .hub-card {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-glass) !important;
  color: #ffffff !important;
}

.card-body {
  color: #ffffff !important;
}

.bg-white:not(.qr-container):not(.qr-code), .bg-light, .bg-body {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: #ffffff !important;
}

.text-dark, .text-muted, .text-black-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.modal-content {
  background-color: #080c18 !important;
  border: 1px solid var(--border-glass) !important;
  color: #ffffff !important;
}

.form-control, .form-select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-glass) !important;
  color: #ffffff !important;
}

.form-control:focus, .form-select:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px var(--primary-glow) !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.table, .table > :not(caption) > * > * {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: var(--border-glass) !important;
}

.dropdown-menu {
  background: rgba(10, 15, 25, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-glass) !important;
}

.dropdown-item {
  color: #ffffff !important;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--primary) !important;
}
