/* ============================================================
   EventHub - Smart College Event Management Portal
   Global Stylesheet
   ============================================================ */

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

/* ===== CSS VARIABLES (PROFESSIONAL CLEAN STYLE) ===== */
:root {
  /* Exact target palette */
  --color-primary: #6366f1; /* Target Indigo */
  --color-primary-dark: #4f46e5;
  --color-secondary: #ec4899; /* Target Pink */
  --color-accent: #10b981;
  --color-white: #ffffff;
  --color-black: #0b0c10; /* Deep black background */
  --color-gray-100: #1f2833; /* Dark slate */
  --color-gray-200: #c5c6c7; /* Light text gray */
  --color-gray-300: rgba(255, 255, 255, 0.1); /* Transparent borders */
  --color-gray-400: #94a3b8;
  --color-gray-600: #64748b;
  --color-gray-700: #475569;
  --color-gray-900: #ffffff; /* All text is light in dark mode */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Premium Gradients */
  --gradient-neon: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --gradient-dark: linear-gradient(135deg, #0b0c10 0%, #1f2833 100%);

  /* Sidebar Profile & Nav */
  --sidebar-bg: #0b0c10; 
  --sidebar-active: rgba(99, 102, 241, 0.2); 

  --glass-bg: rgba(255, 255, 255, 0.05); 
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.7); 
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.8);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px; 
  --radius-xl: 32px;
  --radius-full: 9999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 80px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s ease;
}

/* Glassmorphism Classes (Switched to Clean White in this theme) */
.glass {
  background: var(--color-gray-200);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-300);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-gray-100);
  color: var(--color-gray-900);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.events-grid {
  margin-top: var(--space-xl);
  width: 100%;
}

.events-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding: 0 4px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Responsive Grid System *//* Small spacing for footer */
.footer { margin-top: 100px; }
@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(circle at 0% 0%, rgba(108, 99, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(245, 87, 108, 0.05) 0%, transparent 50%);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 1.5rem; }

/* ===== SECTION LAYOUT ===== */
.section {
  padding: var(--space-2xl) 0;
}

.section-sm {
  padding: var(--space-xl) 0;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ===== NAVBAR (DARK THEME) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 var(--space-xl);
  height: 85px;
  display: flex;
  align-items: center;
  transition: var(--transition-slow);
  background: rgba(11, 12, 16, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.navbar.scrolled,
.navbar.solid {
  background: rgba(15, 23, 42, 0.9);
  height: 70px;
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.logo, 
.navbar-brand,
.navbar.scrolled .logo, 
.navbar.scrolled .navbar-brand,
.navbar.solid .logo,
.navbar.solid .navbar-brand {
  color: #ffffff !important;
  text-shadow: none;
  font-weight: 800;
}

.navbar-menu {
  display: flex !important;
  flex-direction: row !important;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navbar-menu li a,
.navbar-menu li a:hover,
.navbar-menu li a.active {
  color: var(--color-primary);
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo, .navbar-brand {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(108, 99, 255, 0.4);
}

.logo img {
  height: 48px;
  width: auto;
  margin-right: 12px;
  transition: var(--transition);
}

.logo:hover img {
  transform: rotate(5deg) scale(1.1);
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
}

.navbar-menu li a,
.navbar-menu a {
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
  transition: var(--transition);
  padding: 8px 0;
  letter-spacing: 0.2px;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.navbar-menu li a::after,
.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-neon);
  border-radius: 4px;
  transition: var(--transition);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

.navbar-menu li a:hover,
.navbar-menu a:hover,
.navbar-menu li a.active,
.navbar-menu a.active {
  color: #fff !important;
  opacity: 1;
}

.navbar-menu li a:hover,
.navbar-menu a:hover,
.navbar-menu li a.active,
.navbar-menu a.active {
  color: #fff;
}

.navbar-menu li a:hover::after,
.navbar-menu a:hover::after,
.navbar-menu li a.active::after,
.navbar-menu a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 4px;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ===== HERO / VIDEO BG ===== */
.video-bg {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--color-black);
}

.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.77vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(15, 10, 40, 0.3) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
  padding: 0 var(--space-lg);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, var(--font-size-5xl));
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-decoration: none;
  animation: fadeInDown 0.8s ease both;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  animation: fadeInUp 0.8s 0.2s ease both;
  font-style: normal;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.4s ease both;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-neon);
  color: white !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.55);
}

.btn-outline {
  background: transparent;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-gray-200);
  border: 1px solid var(--color-gray-300);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Specific Home/Landing Buttons */
.btn-solid {
  background: var(--gradient-neon);
  color: white !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
}

.btn-white {
  background: white;
  color: var(--color-primary);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
}

.nav-register-btn {
  background: var(--gradient-neon);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transform: translateY(0);
}

.nav-register-btn::after { display: none !important; }

.nav-register-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
  color: #fff !important;
}

/* Dashboard Top Bar (Specific to Student/Organizer panels) */
.dashboard-top-bar {
  position: sticky;
  top: 0;
  background: rgba(2, 3, 5, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  margin-bottom: 40px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-search {
  flex: 0 0 350px;
  position: relative;
}

.dash-search input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dash-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.dash-search input:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.dash-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}

.dash-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  transition: var(--transition);
}

.dash-action-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ===== CARDS ===== */
.card {
  background: var(--color-gray-200);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  color: var(--color-gray-900);
}

/* ===== EVENT CARDS – PREMIUM DARK GLASSMORPHISM ===== */
.event-card {
  background: rgba(17, 19, 28, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.45s ease,
              border-color 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  height: 100%;
}

/* Animated glow border on hover */
.event-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0) 0%, rgba(99,102,241,0.6) 50%, rgba(236,72,153,0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

/* Shimmer sweep */
.event-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  transform: skewX(-20deg);
  z-index: 5;
  transition: left 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.event-card:hover::before { opacity: 1; }
.event-card:hover::after  { left: 180%; }

.event-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 24px 60px -10px rgba(99, 102, 241, 0.35),
    0 8px 24px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.1);
  border-color: rgba(99,102,241,0.4);
}

.event-card-image {
  width: 100%;
  height: 195px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  overflow: hidden;
  flex-shrink: 0;
}

.event-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(11,12,16,0.55) 70%,
    rgba(11,12,16,0.85) 100%
  );
}

/* Category Gradients – richer, more saturated */
.cat-bg-technology { background: linear-gradient(140deg, #4f46e5 0%, #7c3aed 60%, #a21caf 100%); }
.cat-bg-cultural   { background: linear-gradient(140deg, #be123c 0%, #f43f5e 50%, #fb923c 100%); }
.cat-bg-sports     { background: linear-gradient(140deg, #065f46 0%, #10b981 55%, #3b82f6 100%); }
.cat-bg-academic   { background: linear-gradient(140deg, #0369a1 0%, #0ea5e9 55%, #06b6d4 100%); }
.cat-bg-workshop   { background: linear-gradient(140deg, #b45309 0%, #f59e0b 50%, #ef4444 100%); }

/* Category-colored bottom accent bar */
.event-card[data-category="technology"] { --card-accent: #6366f1; }
.event-card[data-category="cultural"]   { --card-accent: #f43f5e; }
.event-card[data-category="sports"]     { --card-accent: #10b981; }
.event-card[data-category="academic"]   { --card-accent: #0ea5e9; }
.event-card[data-category="workshop"]   { --card-accent: #f59e0b; }

.event-card-body {
  padding: 22px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Thin accent line at the very top of the body */
.event-card-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--card-accent, var(--color-primary));
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.event-card:hover .event-card-body::before {
  opacity: 1;
}

.event-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 13px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.event-title {
  font-size: 1.18rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 14px;
  margin-top: 10px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}
.event-card:hover .event-title {
  color: #ffffff;
}

.event-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 5px 12px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.event-card:hover .meta-item {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75);
}

.meta-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.event-description {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Capacity Tracker */
.capacity-container {
  margin-bottom: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 14px;
}

.capacity-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.capacity-header span:last-child {
  color: var(--card-accent, var(--color-primary));
  font-size: 0.8rem;
}

.capacity-progress {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 50px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 50px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(99,102,241,0.5);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: rgba(255,255,255,0.6);
  border-radius: 50px;
  filter: blur(2px);
}

.progress-fill.full {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  box-shadow: 0 0 10px rgba(239,68,68,0.5);
}

.organizer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: auto;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}

.register-btn-wrap {
  margin-top: 4px;
}

.register-btn-wrap .btn {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 12px;
  padding: 11px 20px;
}


.event-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.event-card-footer {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-gray-200);
  background: var(--color-gray-100);
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 100px 10%;
  background: #1a2b33; /* Dark Slate/Teal from screenshot */
  position: relative;
  text-align: center;
  color: #ffffff; /* White text for contrast */
  overflow: hidden;
}

.features::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.03), transparent 70%);
  z-index: 0;
}

.section-title {
  font-size: var(--font-size-4xl);
  margin-bottom: 60px;
  color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.feature-card {
  position: relative;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  background: #243741; /* Darker card shade from screenshot */
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition-slow);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(45deg, #6c63ff, #f5576c, #43e97b, #6c63ff);
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: 0.5s;
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.icon {
  font-size: 45px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.feature-card h3 { margin-bottom: 15px; font-size: 22px; }
.feature-card p { opacity: 0.85; line-height: 1.6; }

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); /* Deep Navy/Indigo Stats */
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.stat-item p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: var(--space-lg); }

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-700);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: var(--color-gray-900);
  background: var(--color-white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-select { appearance: none; cursor: pointer; }

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary { background: rgba(108,99,255,0.15); color: var(--color-primary); }
.badge-success { background: rgba(16,185,129,0.15); color: var(--color-success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--color-warning); }
.badge-error   { background: rgba(239,68,68,0.15);  color: var(--color-error); }

/* ===== DASHBOARD LAYOUT ===== */
.Dashboard-layout {
  display: flex;
  min-height: calc(100vh - 80px); /* Adjust for fixed navbar height */
  margin-top: 80px; /* Offset for fixed navbar */
  background: var(--color-gray-100);
}

.dashboard-sidebar {
  width: 280px;
  background: var(--sidebar-bg); /* Image match Nav */
  color: #ffffff;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  flex-shrink:0;
  z-index: 100;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto var(--space-md);
  background-size: cover;
  background-position: center;
  position: relative;
}

.avatar-edit-overlay {
  position: absolute;
  bottom: 0px;
  right: -5px;
  background: var(--color-gray-900);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(5px);
  transition: var(--transition);
  border: 2px solid var(--color-gray-800);
}

.avatar-wrapper {
  position: relative; 
  width: max-content; 
  margin: 0 auto; 
  cursor: pointer;
}

.avatar-wrapper:hover .avatar-edit-overlay {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-sidebar h3 { font-size: 1rem; margin-bottom: 4px; }
.dashboard-sidebar > div > p { font-size: var(--font-size-sm); opacity: 0.7; margin-bottom: var(--space-sm); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.sidebar-nav-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

.sidebar-nav-item.active {
  background: var(--sidebar-active);
  color: #ffffff;
  border-left: 4px solid var(--color-primary);
}

.sidebar-nav-item:hover:not(.active) {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}

.dashboard-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.dashboard-header h1 {
  font-size: var(--font-size-2xl);
  color: var(--color-white);
}

.dashboard-header p {
  color: var(--color-gray-600);
  margin-top: 4px;
}

.dashboard-section {
  background: var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--color-gray-300);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

/* ===== DATA TABLE ===== */
.data-table-container { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--color-gray-600);
  background: var(--color-gray-100);
  border-bottom: 2px solid var(--color-gray-200);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-gray-200);
  color: var(--color-gray-700);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--color-gray-100); }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #0a0a0f, #1a1a2e);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links li, .footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: var(--font-size-sm);
  transition: var(--transition);
}
.footer-links a:hover { color: white; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-md) 0;
  text-align: center;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.4);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal-overlay.active { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.modal-close {
  background: var(--color-gray-200);
  border: none;
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover { background: var(--color-gray-300); }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 90px;
  right: var(--space-lg);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 300px;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--color-primary);
}

.toast.success { border-left-color: var(--color-success); }
.toast.error   { border-left-color: var(--color-error); }
.toast.warning { border-left-color: var(--color-warning); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 120px 0 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c63ff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: drift 30s linear infinite;
}

.page-header h1 { font-size: var(--font-size-4xl); margin-bottom: var(--space-md); }
.page-header p { font-size: var(--font-size-lg); opacity: 0.8; }

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 60px 60px; }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to { background-position: 200% center; }
}

/* ===== RESPONSIVE ===== */
/* LAPTOP & LARGE TABLET */
@media (max-width: 1199px) {
  .navbar-menu { gap: var(--space-sm); }
  .navbar-menu li a { font-size: 0.9rem; }
  .logo, .navbar-brand { font-size: 1.35rem !important; }
}

/* TABLET & SMALL LAPTOP */
@media (max-width: 991px) {
  .dashboard-sidebar { width: 220px; }
  
  .navbar { padding: 0 var(--space-lg); }
  .hamburger { display: flex; }

  .navbar-menu {
    position: fixed;
    top: 70px; /* Aligns with refined navbar height */
    left: 0;
    right: 0;
    height: calc(100vh - 70px);
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-2xl) 0;
    gap: var(--space-xl);
    transform: translateX(100%); /* Slide from right */
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1001;
    overflow-y: auto;
  }

  .navbar-menu.open { 
    transform: translateX(0); 
  }

  .navbar-menu li {
    width: 100%;
    text-align: center;
  }

  .navbar-menu li a {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    padding: 15px 0;
    display: block;
    color: #fff !important;
  }

  .navbar-menu li a.active {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .Dashboard-layout { flex-direction: column; }
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
}

/* MOBILE SETTINGS */
@media (max-width: 768px) {
  .section { padding: var(--space-xl) 0; }
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 1.8rem; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  
  .cta-buttons { flex-direction: column; width: 100%; padding: 0 var(--space-md); }
  .cta-buttons a { width: 100%; text-align: center; }
}

/* SMALL MOBILE (PHONES) */
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta a { width: 100%; text-align: center; margin-bottom: 10px; }
  .stats-grid { grid-template-columns: 1fr; }
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(67, 233, 123, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(67, 233, 123, 0); }
}

/* ===== CROPPER MODAL STYLES ===== */
.cropper-modal {
  width: 95% !important; /* Full width on mobile */
  max-width: 650px !important;
  background: #111827 !important;
  border: 3px solid var(--color-primary) !important;
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.4);
  color: #ffffff;
  padding: 40px !important;
  max-height: 95vh; /* Ensure it fits on screen */
  overflow-y: auto;
}

.cropper-modal .modal-header h2 {
  color: var(--color-primary) !important;
  font-size: 1.8rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cropper-image-container {
  width: 100%;
  height: 450px;
  max-height: 50vh; /* Responsive height limit */
  background-color: #000;
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .cropper-modal {
    padding: 24px !important;
    width: 90% !important;
  }
  
  .cropper-modal .modal-header h2 {
    font-size: 1.3rem !important;
  }
  
  .cropper-image-container {
    height: 350px;
    margin: 20px 0;
  }
  
  .cropper-controls {
    flex-direction: column-reverse; /* Stack buttons on small screens */
    gap: 12px;
  }
  
  .cropper-controls button {
    width: 100% !important;
    padding: 12px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .cropper-modal {
    padding: 16px !important;
    width: 95% !important;
  }
  
  .cropper-image-container {
    height: 300px;
  }
}


/* ===== CROPPING UI (THE SQUARES/LINES) ===== */
.cropper-view-box {
  outline: 4px solid #6c63ff !important; /* Thick indigo crop box */
}

.cropper-face {
  background-color: transparent !important;
}

.cropper-point {
  background-color: #6c63ff !important; /* Solid indigo handles */
  width: 16px !important; /* Very large handles */
  height: 16px !important;
  opacity: 1 !important;
  border: 3px solid #ffffff !important;
  border-radius: 50% !important; /* Circular handles for modern feel */
}

.cropper-bg {
  background: #000 !important;
}


/* ===== SECTIONS & LAYOUT BLOCKS ===== */
.featured-section {
  padding: 80px 0;
  background: var(--color-black);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-head h2 {
  font-size: 2rem;
  color: #fff;
}

.cta-banner {
  background: var(--gradient-neon);
  padding: 100px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ===== LIVE FEED SECTION ===== */
.live-section {
  padding: 100px 0;
  background: var(--gradient-dark);
  position: relative;
  color: #ffffff;
}

.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.live-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 15px var(--color-success);
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-success);
  font-size: 0.8rem; font-weight: 700;
  padding: 6px 14px; border-radius: 50px;
}

.live-stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-bottom: 40px;
}

.live-stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 24px 20px; text-align: center;
  backdrop-filter: var(--glass-blur);
}

.live-stat-num {
  font-size: 2.2rem; font-weight: 800; color: #ffffff;
}

.live-stat-label {
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.6);
  margin-top: 6px; text-transform: uppercase;
}

.feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; }

.feed-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition);
}

.feed-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.feed-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-neon);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; flex-shrink: 0;
}

.feed-name { font-weight: 700; color: #fff; }
.feed-dept { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.feed-role-badge { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; }

.role-student   { background: rgba(99, 102, 241, 0.1); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.2); }
.role-organizer { background: rgba(236, 72, 153, 0.1); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.2); }

/* ticker */
.ticker-wrap {
  background: var(--gradient-neon);
  color: white; padding: 12px 0; overflow: hidden; white-space: nowrap;
}

.ticker-content { display: inline-block; animation: ticker 40s linear infinite; font-weight: 600; }
@keyframes ticker {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

.slide-element {
  opacity: 0; transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide-element.visible { opacity: 1; transform: translateX(0); }

/* ===== EVENTS PAGE SPECIFIC ===== */
.events-hero {
  background: var(--gradient-dark);
  padding: 120px 0 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.events-hero h1 { font-size: 3rem; margin-bottom: 16px; position: relative; }
.events-hero p { font-size: 1.1rem; opacity: 0.8; max-width: 600px; margin: 0 auto; position: relative; }

.filters-bar {
  background: rgba(15, 23, 42, 0.6);
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 70px; /* Aligns with solid/scrolled navbar */
  z-index: 998;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-bar.scrolled {
  padding: 12px 0;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  transform: translateY(-5px);
}

.filters-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.search-box { flex: 1; min-width: 280px; position: relative; }
.search-box input {
  width: 100%; padding: 14px 20px 14px 48px;
  border: 1px solid var(--color-gray-300);
  border-radius: 50px; font-size: 0.95rem;
  background: rgba(255,255,255,0.05); color: white;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--color-gray-400); }

.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 10px 22px; border-radius: 50px;
  border: 1px solid var(--color-gray-300);
  background: transparent; color: var(--color-gray-200);
  font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}

.pill:hover, .pill.active {
  background: var(--gradient-neon);
  border-color: transparent; color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.events-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin: 40px 0 24px; flex-wrap: wrap; gap: 16px;
}

/* Events grid layout */
.events-grid {
  display: grid;
  gap: 30px;
  width: 100%;
}

.events-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .events-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid.grid-3 {
        grid-template-columns: 1fr;
    }
}

.capacity-bar {
  height: 8px; background: rgba(255,255,255,0.05);
  border-radius: 10px; margin-top: 12px; overflow: hidden;
}

.capacity-fill {
  height: 100%; border-radius: 10px;
  background: var(--gradient-neon);
  transition: width 1s ease;
}

select.sort-select {
  padding: 12px 24px; border: 1px solid var(--color-gray-300);
  border-radius: 50px; background: var(--color-black);
  color: white; font-weight: 600; cursor: pointer;
  outline: none;
}

.view-toggle button {
  background: rgba(255,255,255,0.05); border: 1px solid var(--color-gray-300);
  border-radius: 10px; padding: 10px 14px; color: white; cursor: pointer;
  transition: var(--transition);
}

.view-toggle button.active { background: var(--color-primary); border-color: var(--color-primary); }

/* ===== AUTH / LOGIN / REGISTER ===== */
.auth-page {
  background: var(--gradient-dark);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: white; border-radius: 24px; width: 100%; max-width: 440px;
  overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  animation: slideUp 0.5s ease;
}

.tab-bar { display: flex; border-bottom: 2px solid #f0f2f8; }
.tab-btn {
  flex: 1; padding: 20px; border: none; background: none;
  font-weight: 700; color: #9ca3af; cursor: pointer;
  border-bottom: 3px solid transparent; transition: var(--transition);
}
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.tab-panel { padding: 40px; display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

.input-group { margin-bottom: 16px; position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #6b7280; }
.input-group input, .input-group select {
  width: 100%; padding: 12px 16px 12px 44px;
  border: 2px solid #eef0f7; border-radius: 12px;
  font-size: 0.9rem; outline: none; transition: var(--transition);
}
.input-group input:focus { border-color: var(--color-primary); box-shadow: 0 0-0 4px rgba(99, 102, 241, 0.12); }


/* ===== UTILITIES & NOTIFICATIONS ===== */
.notif-bell {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer; transition: var(--transition);
  font-size: 1.2rem;
}

.notif-bell:hover { background: rgba(255,255,255,0.1); border-color: var(--color-primary); }

.notif-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--color-error); color: #fff;
  font-size: 0.65rem; font-weight: 800; min-width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-black);
}

/* ===== DASHBOARD LAYOUT & COMPONENTS ===== */
.Dashboard-layout {
  display: flex; 
  min-height: 100vh; 
  margin-top: 0; 
  background: var(--color-black);
}

.sidebar {
  width: 260px; background: var(--sidebar-bg); border-right: 1px solid var(--glass-border);
  display: flex; flex-direction: column; position: sticky; top: 80px; height: calc(100vh - 80px);
  padding: var(--space-lg) var(--space-md); flex-shrink: 0; z-index: 90;
}

.dashboard-main {
  flex: 1; padding: var(--space-xl); overflow-x: hidden;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 12px;
  color: var(--color-gray-200); text-decoration: none; font-weight: 600; border: 1px solid transparent;
  transition: var(--transition);
}

.sidebar-nav-item:hover {
  background: var(--sidebar-active); color: var(--color-primary); border-color: rgba(99, 102, 241, 0.1);
}

.sidebar-nav-item.active {
  background: var(--gradient-neon); color: white !important; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.dashboard-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 40px; flex-wrap: wrap; gap: 20px;
}

.dashboard-header h1 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.dashboard-header p { color: var(--color-gray-200); opacity: 0.8; }

.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-bottom: 40px;
}

.dashboard-section {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 32px; margin-bottom: 32px;
  backdrop-filter: var(--glass-blur);
}

.stat-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 24px; display: flex; align-items: center; gap: 20px;
  backdrop-filter: var(--glass-blur); transition: var(--transition);
}

.stat-card:hover { transform: translateY(-5px); border-color: var(--color-primary); }

.stat-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0; background: rgba(99, 102, 241, 0.1);
}

.stat-card-info h3 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.stat-card-info p { font-size: 0.85rem; color: var(--color-gray-400); font-weight: 600; }

/* Dashboard Tables */
.data-table-container { width: 100%; overflow-x: auto; margin-top: 10px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.data-table th {
  text-align: left; padding: 16px 20px; color: var(--color-gray-400); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--glass-border);
}

.data-table td { padding: 20px; border-bottom: 1px solid var(--glass-border); color: #fff; font-size: 0.9rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.badge {
  padding: 6px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.badge-success { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }

/* Quick Actions Button Strip */
.quick-actions-bar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.quick-btn {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  padding: 12px 24px; border-radius: 12px; color: #fff; font-weight: 600;
  font-size: 0.9rem; transition: var(--transition); backdrop-filter: var(--glass-blur);
}

.quick-btn:hover { border-color: var(--color-primary); background: rgba(99, 102, 241, 0.1); }

/* Chart Styling */
.chart-bar { display: flex; align-items: flex-end; gap: 24px; height: 260px; padding: 30px 20px; }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; border-radius: 6px 6px 0 0; position: relative; transition: height 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67); }
.bar:hover { filter: brightness(1.2); }
.bar-label { font-size: 0.7rem; color: var(--color-gray-400); text-align: center; line-height: 1.4; }

@media (max-width: 991px) {
  .Dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--glass-border); }
}
