@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --dark-bg: #050509;
  --sidebar-bg: #111118;
  --content-bg: #161622;
  --text-color: #f9fafb;
  --hover-color: #1f2430;
  --link-bg: #151824;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-muted: #9ca3af;
  --accent-red: #ef4444;
  --accent-red-soft: rgba(239, 68, 68, 0.18);
  --accent-gold: #fbbf24;
  --accent-gold-soft: rgba(251, 191, 36, 0.12);
  --input-bg: rgba(15, 23, 42, 0.8);
  --input-border: rgba(148, 163, 184, 0.35);
  --input-border-focus: #f87171;
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.7);
}

/* Base */

body {
  background: radial-gradient(circle at top, #1f2933 0, #050509 55%) fixed;
  color: var(--text-color);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  height: 100vh;
}

/* Sidebar */

.sidebar {
  background-color: var(--sidebar-bg);
  height: 100vh;
  padding: 15px;
  border-radius: 0 20px 20px 0;
  position: fixed;
  left: 0;
  top: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
}

.logo {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 15px;
}

.logo img {
  max-width: 125px;
}

.user-profile {
  background-color: var(--sidebar-bg);
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 0.9em;
  margin-top: 15px;
  text-align: center;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}

.nav-links li {
  margin-bottom: 10px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  padding: 10px;
  display: block;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.15s ease, box-shadow 0.15s ease;
  background-color: var(--link-bg);
  font-size: 0.9rem;
}

.nav-links a:hover {
  background-color: var(--hover-color);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45);
}

.nav-links a.active {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  /*box-shadow:
    0 12px 22px rgba(248, 113, 113, 0.5),
    0 0 0 1px rgba(248, 113, 113, 0.7);*/
}

/* Logout button */

.logout-btn {
  margin-top: auto;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  /*box-shadow:
    0 12px 22px rgba(248, 113, 113, 0.5),
    0 0 0 1px rgba(248, 113, 113, 0.6);*/
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.logout-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 28px rgba(248, 113, 113, 0.6),
    0 0 0 1px rgba(248, 113, 113, 0.8);
  filter: brightness(1.03);
}

a:hover {
  color: var(--text-color);
}

/* Main content */

.content {
  margin-left: 220px;
  padding: 20px;
}

.main-title {
  color: var(--text-color);
  margin-bottom: 30px;
  text-align: center;
}

/* Legacy dashboard card (if still used elsewhere) */

.dashboard-card {
  background-color: var(--content-bg);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

/* Home dashboard hero + cards */

.dash-hero-card {
  border-radius: 24px;
  border: 1px solid rgba(248, 250, 252, 0.06);
  padding: 18px 18px 10px;
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.28), transparent 55%),
    radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.18), transparent 60%),
    linear-gradient(135deg, #020617, #020617 30%, #020617);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 18px;
}

.dash-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

.dash-hero-top {
  margin-bottom: 10px;
}

.dash-hero-logo-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.dash-hero-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  padding: 5px 0 5px 0;
}

.dash-hero-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dash-hero-title-line1 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.1;
  color: #f9fafb;
}

.dash-hero-title-line2 {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-muted);
}

.dash-hero-pill-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-width: 1px;
  border-style: solid;
}

.dash-pill-gold {
  border-color: rgba(251, 191, 36, 0.5);
  background: var(--accent-gold-soft);
  color: #fef3c7;
}

.dash-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.dash-hero-body {
  margin-top: 4px;
}

.dash-hero-heading {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #f9fafb;
}

.dash-hero-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Row layout for cards under hero */

.dash-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* Generic dash cards */

.dash-card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border-radius: 18px;
  border: 1px solid rgba(248, 250, 252, 0.06);
  padding: 14px 14px 12px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.dash-card-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.dash-card-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dash-card-body {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.dash-card-footer {
  margin-top: 10px;
}

/* Next event specifics */

.dash-event-name {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.dash-event-meta {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.dash-event-meta-muted {
  margin-top: 3px;
  color: var(--text-muted);
}

/* Quick nav chips */

.dash-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-chip-link {
  background-color: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1rem;
  color: #f9fafb;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.6);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dash-chip-link:hover {
  background-color: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.9);
  transform: translateY(-1px);
}

/* Buttons */

.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
}

.dash-btn-primary {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fef2f2;
  border: 1px solid rgba(248, 113, 113, 0.8);
  box-shadow:
    0 10px 18px rgba(248, 113, 113, 0.4),
    0 0 0 1px rgba(248, 113, 113, 0.5);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background-position 0.2s ease;
  background-size: 150% 150%;
  background-position: 0% 50%;
}

.dash-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 24px rgba(248, 113, 113, 0.55),
    0 0 0 1px rgba(248, 113, 113, 0.7);
  filter: brightness(1.03);
  background-position: 100% 50%;
}

/* Announcements */

.dash-announce-line {
  font-size: 0.85rem;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.dash-announce-muted {
  color: var(--text-muted);
}

/* Stats grid (used on other pages) */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.stat-item {
  background-color: var(--link-bg);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
}

/* Series cards (current/archived pages) */

.series-card {
  margin-bottom: 30px;
}

.series-title {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.series-description {
  margin-bottom: 20px;
}

.series-links {
  display: flex;
  justify-content: space-around;
}

.series-link {
  background-color: var(--link-bg);
  color: var(--text-color);
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.15s ease;
}

.series-link:hover {
  background-color: var(--hover-color);
  transform: translateY(-1px);
}

/* Overlay / loader */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease;
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-top: 4px solid #FFF;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  position: relative;
}

.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-bottom: 4px solid #FF3D00;
  border-left: 4px solid transparent;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Fade / visibility */

.fade-in {
  opacity: 0;
  transition: opacity .5s ease-in;
}

.fade-in.visible {
  opacity: 1;
}

.main-content {
  visibility: hidden;
}

.main-content.visible {
  visibility: visible;
}

/* Utility */

.bg-over {
  --bs-bg-opacity: 1;
  background-color: rgb(255 0 0) !important;
}

/* FullCalendar accent overrides */

.fc .fc-col-header-cell-cushion {
  color: #ff5252;
}

.fc fc-daygrid-day-number {
  color: #ff5252;
}

.fc a {
  color: #ff3030;
}

/* Responsive */

@media (max-width: 768px) {
  .content {
    margin-left: 0;
    padding: 16px;
  }

  .sidebar {
    position: static;
    height: auto;
    width: 100%;
    border-radius: 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .nav-links {
    flex: 1;
    display: flex;
    gap: 6px;
  }

  .nav-links li {
    margin-bottom: 0;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .dash-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
