html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
.timetable-card {
  border-radius: 1rem;
  border: 1px solid #e9ecef;
}

.star-score {
  background: #fff5cc;
  border: 1px solid #ffd54f;
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

.star-burst {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #e7f8ee;
  color: #1b5e20;
  animation: fade-slide-in 0.4s ease-out;
}

.star-icon {
  display: inline-block;
  animation: pulse-spin 1.2s ease-in-out;
  font-size: 1.4rem;
}

@keyframes pulse-spin {
  0% { transform: scale(0.3) rotate(0deg); opacity: 0; }
  40% { transform: scale(1.35) rotate(180deg); opacity: 1; }
  100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.scratch-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.scratch-card-wrapper {
  background: #fff;
  border-radius: 1rem;
  width: min(92vw, 380px);
  padding: 1rem;
  text-align: center;
}

.scratch-card {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid #dee2e6;
  overflow: hidden;
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
}

.scratch-prize {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dcfce7, #fef9c3);
  font-weight: 700;
}

#scratchCanvas {
  position: relative;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

body.modern-app {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.navbar {
  backdrop-filter: saturate(160%) blur(8px);
}

.card, .table {
  border-radius: 0.8rem;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}

.admin-sidebar a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  padding: .65rem 1rem;
  border-left: 3px solid transparent;
}

.admin-sidebar a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-left-color: #60a5fa;
}

.admin-content {
  flex: 1;
  min-width: 0;
}

.admin-topbar {
  background: rgba(255,255,255,.8);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-collapsed .admin-sidebar {
  transform: translateX(-100%);
  position: fixed;
  height: 100vh;
  z-index: 1040;
}

@media (min-width: 992px) {
  .sidebar-collapsed .admin-sidebar {
    transform: translateX(-100%);
  }
}

.modern-navbar {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 55%, #0f766e 100%);
}

.modern-navbar .nav-link,
.modern-navbar .navbar-brand,
.modern-navbar .navbar-text {
  color: rgba(255,255,255,0.92) !important;
}

.modern-navbar .nav-link:hover,
.modern-navbar .navbar-brand:hover {
  color: #ffffff !important;
}

.rmj-logo {
  width: auto;
  height: 42px;
  max-width: 160px;
  object-fit: contain;
}

.modern-app .card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

.sidebar-group-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
  padding: .75rem 1rem .25rem;
  font-weight: 700;
}

@media print {
  .admin-sidebar,
  .admin-topbar,
  .no-print {
    display: none !important;
  }

  .admin-content {
    width: 100% !important;
  }
}
