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

:root {
  /* Core Theme Color Palette */
  --color-bg-base: #F4EFE6;       /* Warm light tan background */
  --color-text-primary: #2C2520;  /* Dark charcoal brown for high readability */
  --color-text-muted: #5C524A;    /* Muted taupe-grey */
  
  --color-primary: #D35400;       /* Dark Orange (Primary Accent) */
  --color-primary-hover: #E67E22; /* Slightly brighter orange on hover */
  --color-accent-taupe: #8A7968;  /* Taupe (Secondary Accent) */
  --color-accent-light: #EADBC8;  /* Soft tan-cream for subtle surfaces */
  --color-accent-glow: #F39C12;   /* Secondary glow color */

  /* Glassmorphism Settings */
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 12px 36px 0 rgba(138, 121, 104, 0.16);
  --glass-blur: blur(14px);
  --glass-saturate: saturate(180%);

  /* Alert Colors */
  --color-success: #27AE60;
  --color-danger: #C0392B;
  --color-info: #2980B9;
  
  /* System Transition Settings */
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Glowing Background Elements (to highlight the Glassmorphism blur) */
.ambient-glow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  mix-blend-mode: multiply;
  animation: float 20s infinite alternate ease-in-out;
}

.glow-circle-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -100px;
  right: -50px;
  animation-duration: 25s;
}

.glow-circle-2 {
  width: 600px;
  height: 600px;
  background: var(--color-accent-taupe);
  bottom: -150px;
  left: -100px;
  animation-duration: 30s;
  animation-delay: -5s;
}

.glow-circle-3 {
  width: 400px;
  height: 400px;
  background: var(--color-accent-glow);
  top: 40%;
  left: 30%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 80px) scale(1.15);
  }
  100% {
    transform: translate(-30px, -50px) scale(0.9);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Premium Glassmorphic Layouts */
.glass-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(138, 121, 104, 0.06);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-text-primary);
  background: linear-gradient(135deg, var(--color-primary) 30%, var(--color-accent-taupe) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
}

.brand-logo span {
  color: var(--color-accent-taupe);
  -webkit-text-fill-color: var(--color-accent-taupe);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.3);
}

.nav-link.active {
  color: var(--color-primary);
  background: rgba(211, 84, 0, 0.08);
}

.nav-btn {
  background: var(--color-primary);
  color: white !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(211, 84, 0, 0.25);
}

.nav-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.35);
}

/* Glass Panels & Containers */
.container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-taupe));
  opacity: 0.85;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 45px 0 rgba(138, 121, 104, 0.22);
}

/* Forms & Interactive Components */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(138, 121, 104, 0.3);
  border-radius: 10px;
  outline: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(5px);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Premium Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  text-transform: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(211, 84, 0, 0.2);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(211, 84, 0, 0.35);
}

.btn-secondary {
  background: rgba(138, 121, 104, 0.15);
  color: var(--color-text-primary);
  border: 1px solid rgba(138, 121, 104, 0.25);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(138, 121, 104, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.25);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Flash Messages & Alerts */
.alerts-container {
  max-width: 1100px;
  margin: 1.5rem auto 0 auto;
  padding: 0 1.5rem;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  animation: slideIn 0.4s ease-out;
  border: 1px solid;
}

.alert-success {
  background: rgba(39, 174, 96, 0.18);
  border-color: rgba(39, 174, 96, 0.3);
  color: #1b5e20;
}

.alert-danger {
  background: rgba(192, 57, 43, 0.18);
  border-color: rgba(192, 57, 43, 0.3);
  color: #7b1fa2; /* dark red-purple */
}

.alert-info {
  background: rgba(41, 128, 185, 0.18);
  border-color: rgba(41, 128, 185, 0.3);
  color: #0d47a1;
}

.alert-close {
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: inherit;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.alert-close:hover {
  opacity: 1;
}

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

/* Glass Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-pending {
  background: rgba(243, 156, 18, 0.15);
  color: #d35400;
  border-color: rgba(243, 156, 18, 0.25);
}

.badge-accepted {
  background: rgba(39, 174, 96, 0.15);
  color: var(--color-success);
  border-color: rgba(39, 174, 96, 0.25);
}

.badge-declined {
  background: rgba(192, 57, 43, 0.15);
  color: var(--color-danger);
  border-color: rgba(192, 57, 43, 0.25);
}

/* List Groups & Tables */
.glass-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.glass-list-item {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.glass-list-item:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translateX(4px);
}

/* Dashboard / Index Hero Details */
.hero-section {
  text-align: center;
  padding: 4rem 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 20%, var(--color-accent-taupe) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.event-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.event-card-header {
  margin-bottom: 1rem;
}

.event-card-time {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.event-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Utility layout utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 1rem; }

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Footer style */
.glass-footer {
  text-align: center;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: auto;
  font-family: 'Outfit', sans-serif;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

/* Responsive adjust */
@media(max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .glass-navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .container {
    margin: 1.5rem auto;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: slideUp 0.5s ease-out;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
}
.cookie-banner-content {
  font-size: 0.9rem;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  line-height: 1.4;
  text-align: left;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 1rem;
    gap: 1rem;
  }
}
@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Navigation Avatar Dropdown */
.nav-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-avatar-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  transition: var(--transition-fast);
  color: var(--color-text-primary);
  user-select: none;
}
.nav-avatar-trigger:hover {
  background: rgba(255,255,255,0.35);
  border-color: var(--color-primary);
}
.nav-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-primary);
}
.nav-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Outfit', sans-serif;
  border: 1px solid var(--color-primary);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
}
.nav-dropdown-menu.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}
.nav-dropdown-menu a {
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  transition: var(--transition-fast);
  text-align: left;
}
.nav-dropdown-menu a:hover {
  background: rgba(211,84,0,0.1);
  color: var(--color-primary);
}
