/* Leo Ticketing - Global Styles */
/* Poppins Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Global Resets & Base Styles */
* {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f0f5ff;
  margin: 0;
  padding: 0;
}

/* Body background for dark-themed pages */
body:has(.admin-bg),
body:has(.scanner-bg),
body:has(.login-bg) {
  background: #070b14;
}

:root {
  --leo-blue: #1E90FF;
  --leo-bg: #f0f5ff;
  --leo-panel: #ffffff;
  --leo-panel-2: #fafbff;
  --leo-text: #1a2840;
  --leo-muted: rgba(26, 40, 64, .65);
  --leo-border: rgba(30, 144, 255, .15);
}

/* Apple-style Glassmorphism Navbar */
.navbar {
  background: rgba(30, 144, 255, 0.90) !important;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 2px 20px rgba(30, 144, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 0 20px 20px;
}

.navbar.scrolled {
  background: rgba(30, 144, 255, 0.95) !important;
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  box-shadow: 0 4px 30px rgba(30, 144, 255, 0.25),
              0 2px 10px rgba(0, 0, 0, 0.15);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0 0 24px 24px;
}

.navbar-brand {
  font-weight: 700;
  color: white !important;
  transition: all 0.3s ease;
}

.nav-link {
  color: rgba(255, 255, 255, .90) !important;
  padding: .5rem 1rem !important;
  transition: all .3s ease;
  font-weight: 500;
  border-radius: 8px;
}

.nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, .20);
  transform: translateY(-1px);
}

/* Studio Gradient Background */
.leo-bg {
  min-height: calc(100vh - 72px);
  background:
    linear-gradient(90deg, #f8faff 0%, #f0f5ff 25%, #e8f0ff 50%, #e0ebff 75%, #d8e6ff 100%),
    radial-gradient(1400px 800px at 85% 10%, rgba(30, 144, 255, 0.12), transparent 70%);
}

/* Card System with Fixed Layout */
.leo-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .90));
  border: 2px solid rgba(30, 144, 255, .15);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(30, 144, 255, .12), 0 2px 8px rgba(0, 0, 0, .06);
  transform: translateZ(0);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}

.leo-card:hover {
  transform: scale(1.02);
  border-color: rgba(30, 144, 255, .35);
  box-shadow: 0 16px 48px rgba(30, 144, 255, .20), 0 4px 16px rgba(0, 0, 0, .08);
}

/* Fixed Card Layout Heights */
.leo-banner {
  height: 180px;
  background:
    radial-gradient(600px 220px at 20% 10%, rgba(30, 144, 255, .15), transparent 55%),
    radial-gradient(420px 220px at 80% 30%, rgba(30, 144, 255, .10), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(248, 250, 255, .05));
  border-bottom: 1px solid rgba(30, 144, 255, .12);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.leo-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.leo-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--leo-text);
  margin-bottom: 0.75rem;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.leo-card-location {
  min-height: 3rem;
  margin-bottom: 0.75rem;
}

.leo-card-capacity {
  min-height: 4rem;
  margin-bottom: 0.75rem;
}

.leo-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Improved Badge Visibility */
.leo-badge {
  background: rgba(30, 144, 255, .18);
  border: 1px solid rgba(30, 144, 255, .40);
  color: var(--leo-text);
  border-radius: 999px;
  padding: .5rem .8rem;
  font-weight: 600;
  letter-spacing: .3px;
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
}

.leo-location-badge {
  background: rgba(30, 144, 255, .25);
  border: 1px solid rgba(30, 144, 255, .35);
  color: #0d4a8a;
  border-radius: 8px;
  padding: .4rem .65rem;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.leo-datechip {
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(30, 144, 255, .25);
  border-radius: 12px;
  padding: .6rem .75rem;
  color: var(--leo-text);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
}

.leo-date {
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.1;
}

.leo-time {
  font-size: .80rem;
  color: var(--leo-muted);
  margin-top: .15rem;
}

/* Invitation Scope Badge */
.leo-invitation-badge {
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .30);
  color: #6d28d9;
  border-radius: 8px;
  padding: .35rem .6rem;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Dot Indicators */
.leo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--leo-blue);
  box-shadow: 0 0 0 4px rgba(30, 144, 255, .20);
  flex: 0 0 10px;
}

.leo-dot-soft {
  background: rgba(30, 144, 255, .7);
  box-shadow: 0 0 0 4px rgba(30, 144, 255, .12);
}

/* View Details Pill - Fixed Width */
.leo-pill {
  color: var(--leo-text);
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(30, 144, 255, .12);
  border: 1px solid rgba(30, 144, 255, .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.leo-arrow {
  color: var(--leo-text);
  font-size: 1.15rem;
  transform: translateX(0);
  transition: transform .25s ease;
}

.leo-card:hover .leo-arrow {
  transform: translateX(4px);
}

/* Input Styles */
.leo-input {
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(30, 144, 255, .20);
  color: var(--leo-text);
  border-radius: 14px;
  padding: .85rem 1rem;
  outline: none;
  transition: all .25s ease;
  font-family: 'Poppins', sans-serif;
}

.leo-input::placeholder {
  color: rgba(26, 40, 64, .45);
}

.leo-input:focus {
  border-color: rgba(30, 144, 255, .65);
  box-shadow: 0 0 0 .25rem rgba(30, 144, 255, .10);
  background: rgba(255, 255, 255, .95);
  color: var(--leo-text);
}

/* Glow Effect */
.leo-glow {
  position: absolute;
  inset: -40px -40px auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(30, 144, 255, .35), transparent 65%);
  filter: blur(10px);
  opacity: .65;
  transform: translate(10px, -10px);
  animation: floatGlow 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate(10px, -10px) scale(1);
    opacity: .55;
  }
  50% {
    transform: translate(-6px, 2px) scale(1.08);
    opacity: .75;
  }
}

/* Entrance Animation */
.event-card-wrap {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

.event-card-wrap.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Alert Styles */
.leo-alert {
  background: rgba(30, 144, 255, .08);
  color: var(--leo-text);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(30, 144, 255, .15);
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: rgba(30, 144, 255, .98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(20px);
  }

  .leo-banner {
    height: 160px;
  }

  .leo-card-title {
    font-size: 1rem;
  }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .leo-banner {
    height: 170px;
  }
}

/* Progress Bar */
.leo-progress-track {
  height: 6px;
  background: rgba(30, 144, 255, .12);
  border-radius: 3px;
  overflow: hidden;
}

.leo-progress-bar {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* Registered Badge */
.leo-registered-badge {
  background: rgba(34, 197, 94, 0.90);
  color: white;
  font-size: 0.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 8px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Category Badge */
.leo-category-badge {
  background: rgba(30, 144, 255, .15);
  color: var(--leo-blue);
  font-size: 0.75rem;
  border: 1px solid rgba(30, 144, 255, .25);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-weight: 600;
}
