/* ============================================
   DESIGN ELEGANTE E PROFISSIONAL
   Ministério Luz - Sistema de Eventos
   ============================================ */

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

/* ============================================
   SISTEMA DE CORES E VARIÁVEIS
   ============================================ */

:root {
  /* Paleta de Cores Refinada */
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #c4b5fd;
  --secondary: #6b7280;
  --accent: #7c3aed;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Tons Neutros */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Sistema de Cores */
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --input: #f8fafc;
  --ring: #8b5cf6;

  /* Espaçamento e Raios */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Tipografia Moderna */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Consolas,
    monospace;

  /* Sombras Elegantes */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Tipografia */
/* ============================================
   TIPOGRAFIA MODERNA
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
}

h5 {
  font-size: 1rem;
  font-weight: 500;
}

h6 {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 0.875rem;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.2s ease-in-out;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-content {
  padding: 1.5rem;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  background: var(--primary);
  color: white;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-large {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-small {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
}

.btn-disabled {
  background: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-disabled:hover {
  background: var(--gray-300);
  transform: none;
  box-shadow: none;
}

/* Header */
.public-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.logo .tagline {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 400;
  margin-top: 0.25rem;
  font-style: italic;
}

.public-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.public-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.public-nav a:hover {
  background: var(--muted);
  color: var(--foreground);
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 4rem 0 3rem;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--muted) 100%
  );
}

.page-header h1 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.page-header p {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  box-shadow: var(--shadow);
}

.event-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.event-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.event-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.event-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.event-date,
.event-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.event-date::before {
  content: "📅";
  font-size: 1rem;
}

.event-location::before {
  content: "📍";
  font-size: 1rem;
}

.event-description {
  padding: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.event-meta {
  padding: 1.5rem;
  background: var(--muted);
  border-top: 1px solid var(--border);
}

.event-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.event-price.free {
  color: var(--success);
}

.event-spots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.spots-warning {
  background: var(--warning);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.registration-required {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

.registration-optional {
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 500;
}

.event-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem;
  justify-content: flex-end;
}

/* Forms */
.registration-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  color: var(--foreground);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 0.125rem;
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  line-height: 1.5;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.empty-state h3 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.empty-state p {
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

/* Tables */
.events-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.events-table th,
.events-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.events-table th {
  background: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--foreground);
}

.events-table tr:hover {
  background: var(--muted);
}

.events-table .actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Status */
.status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-ativo {
  background: var(--success);
  color: white;
}

.status-inativo {
  background: var(--gray-400);
  color: white;
}

.status-cancelado {
  background: var(--error);
  color: white;
}

.status-finalizado {
  background: var(--primary);
  color: white;
}

/* Alerts */
.success,
.error,
.warning {
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.success {
  background: var(--success);
  color: white;
}

.error {
  background: var(--error);
  color: white;
}

.warning {
  background: var(--warning);
  color: white;
}

.success-message {
  background: var(--success);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  text-align: center;
}

.success-message h3 {
  color: white;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer p {
  color: var(--gray-400);
}

/* ============================================
   REVOLUTIONARY LOGIN PAGE
   Split-screen design with immersive experience
   ============================================ */

.revolutionary-login {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--gray-900);
  overflow: hidden;
  position: relative;
}

/* Geometric Background */
.login-background-new {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 25% 25%,
      var(--primary) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 75% 75%, var(--accent) 0%, transparent 50%),
    linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  opacity: 0.8;
}

.geo-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(1px);
  animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 15%;
  animation-delay: 7s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 50%;
  animation-delay: 14s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

/* Split Container */
.split-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Brand Panel (Left) */
.brand-panel {
  flex: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: white;
  position: relative;
}

.brand-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 500px;
}

.brand-icon {
  margin-bottom: 2rem;
  position: relative;
}

.icon-layers {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
}

.icon-layer {
  position: absolute;
  border-radius: 30px;
  animation: iconFloat 6s infinite ease-in-out;
}

.layer-1 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  animation-delay: 0s;
}

.layer-2 {
  width: 100px;
  height: 100px;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.2);
  animation-delay: 2s;
}

.layer-3 {
  width: 80px;
  height: 80px;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.1);
  animation-delay: 4s;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

.main-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: white;
}

.brand-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.brand-tagline {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

.brand-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.feature-item span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.brand-footer {
  margin-top: 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-5px);
}

/* Login Panel (Right) */
.login-panel {
  flex: 0 0 480px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-content {
  width: 100%;
  max-width: 400px;
  padding: 3rem 2rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  letter-spacing: -0.05em;
}

.login-header p {
  color: var(--muted-foreground);
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

/* Error Alert */
.error-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  margin-bottom: 2rem;
  animation: errorSlideIn 0.4s ease-out;
}

.error-icon {
  width: 44px;
  height: 44px;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--error);
  flex-shrink: 0;
}

.error-text {
  flex: 1;
}

.error-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--error);
  margin-bottom: 0.25rem;
}

.error-text span {
  font-size: 0.875rem;
  color: rgba(239, 68, 68, 0.8);
  font-weight: 400;
}

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

/* Login Form */
.login-form-new {
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.input-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  z-index: 2;
  transition: color 0.3s ease;
}

.input-container input {
  width: 100%;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  border: 2px solid var(--border);
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  background: var(--background);
  color: var(--foreground);
  transition: all 0.3s ease;
  outline: none;
}

.input-container input::placeholder {
  color: var(--muted-foreground);
  font-weight: 400;
}

.input-container.focused input,
.input-container input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-container.focused .input-icon,
.input-container input:focus + .input-icon {
  color: var(--primary);
}

/* Login Button */
.login-button {
  width: 100%;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  letter-spacing: -0.025em;
}

.button-text {
  position: relative;
  z-index: 2;
}

.button-arrow {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.button-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.login-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.login-button:hover .button-arrow {
  transform: translateX(5px);
}

.login-button.hovered .button-bg {
  left: 0;
}

.login-button:active {
  transform: translateY(-2px);
}

/* Login Footer */
.login-footer-new {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.security-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 20px;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .split-container {
    flex-direction: column;
  }

  .brand-panel {
    flex: none;
    min-height: 60vh;
    padding: 2rem;
  }

  .brand-text h1 {
    font-size: 2.5rem;
  }

  .brand-features {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .login-panel {
    flex: none;
    min-height: 40vh;
  }
}

@media (max-width: 1024px) {
  .brand-panel {
    display: none;
  }

  .login-panel {
    flex: 1;
    min-height: 100vh;
  }

  .login-content {
    padding: 3rem 1.5rem;
    max-width: 100%;
  }

  .login-header h2 {
    font-size: 1.75rem;
  }
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .event-actions {
    flex-direction: column;
  }

  .events-table {
    font-size: 0.8rem;
  }

  .events-table .actions {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 2rem 0;
  }

  .registration-form {
    padding: 1.5rem;
  }

  .event-header,
  .event-meta,
  .event-actions {
    padding: 1rem;
  }
}

/* ============================================
   ADMIN AREA STYLES
   Modern and professional admin interface
   ============================================ */

/* ============================================
   ADMIN AREA STYLES - MODERNIZED
   Modern and professional admin interface
   ============================================ */

/* Prevenir overflow horizontal global */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

/* Prevenir scroll quando menu mobile estiver ativo */
body.mobile-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

html.mobile-menu-open {
  overflow: hidden !important;
}

/* Dashboard Content Grid */
.dashboard-content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-content-grid > .admin-card:first-child {
  flex: 2;
  min-width: 0;
}

.dashboard-content-grid > .admin-card:last-child {
  flex: 1;
  min-width: 300px;
}

/* Admin Header */
.admin-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.admin-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: min(1400px, 100vw);
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: var(--muted);
}

/* Logo */
.admin-logo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  display: flex;
  align-items: center;
}

.admin-subtitle {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Desktop Navigation */
.admin-nav.desktop-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.admin-nav .nav-item:hover {
  background: var(--muted);
  color: var(--foreground);
  transform: translateY(-1px);
}

.admin-nav .nav-item.nav-external {
  color: var(--primary);
}

.admin-nav .nav-item.nav-external:hover {
  background: var(--primary/10);
}

.admin-nav .nav-item svg {
  opacity: 0.8;
  flex-shrink: 0;
}

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--muted);
  border-radius: var(--radius-lg);
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--foreground);
}

.user-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Admin Dashboard Layout */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 80px);
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding: 2rem;
  flex-wrap: wrap;
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--gray-50) 100%
  );
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.admin-page-header div {
  flex: 1;
}

.admin-page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--foreground);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.05em;
}

.admin-page-header p {
  color: var(--muted-foreground);
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

/* Enhanced Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.admin-stat-card {
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--gray-50) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.admin-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(45deg, var(--primary), #7c3aed);
  color: white;
}

.stat-card-content h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem 0;
}

.stat-card-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.25rem 0;
  line-height: 1;
}

.stat-card-change {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-card-change.positive {
  color: var(--success);
}

.stat-card-change.negative {
  color: var(--error);
}

/* Admin Cards */
.admin-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.admin-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.admin-card-header {
  padding: 2rem 2rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    var(--gray-50) 0%,
    var(--background) 100%
  );
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-header h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  letter-spacing: -0.025em;
}

.admin-card-content {
  padding: 2rem;
}

/* Enhanced Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--muted);
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.admin-table tr:hover {
  background: var(--muted);
}

.admin-table .actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Enhanced Status Badges */
.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.admin-status.status-ativo {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
}

.admin-status.status-inativo {
  background: rgba(148, 163, 184, 0.1);
  color: var(--gray-500);
}

.admin-status.status-cancelado {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.quick-action-card {
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--gray-50) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--foreground);
  box-shadow: var(--shadow-md);
}

.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--background) 100%
  );
}

.quick-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

.quick-action-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.quick-action-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.5;
}

/* Recent Activity */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.activity-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--foreground);
}

.activity-content p {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin: 0;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease;
  cursor: pointer;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(280px, 100vw);
  max-width: 100vw;
  height: 100vh;
  background: var(--background);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  visibility: hidden;
}

.mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--muted/30);
}

.mobile-nav-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.mobile-nav-content {
  padding: 1rem 0;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-item:hover {
  background: var(--muted);
  border-left-color: var(--primary);
}

.mobile-nav-item.logout-item {
  color: var(--error);
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-nav-item.logout-item:hover {
  background: var(--error/10);
  border-left-color: var(--error);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

/* Tooltips for desktop nav */
.nav-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--popover);
  color: var(--popover-foreground);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: var(--shadow);
  z-index: 100;
  border: 1px solid var(--border);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .admin-nav .nav-text {
    display: none;
  }

  .admin-nav .nav-item {
    padding: 0.75rem;
  }

  .user-details {
    display: none;
  }

  .logout-text {
    display: none;
  }

  /* Dashboard content em tablets */
  .dashboard-content-grid > .admin-card:last-child {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    order: 1;
  }

  .admin-logo {
    order: 2;
    flex: 1;
    align-items: center;
    text-align: center;
  }

  .admin-logo h1 {
    font-size: 1.25rem;
    justify-content: center;
  }

  .admin-nav.desktop-nav {
    display: none;
  }

  .user-menu {
    display: none;
  }

  .mobile-nav-overlay {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  .admin-header .header-container {
    padding: 1rem;
    gap: 1rem;
    max-width: 100vw;
    overflow: hidden;
    justify-content: flex-start;
  }

  .admin-container {
    padding: 1rem;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  /* Dashboard content grid responsivo */
  .dashboard-content-grid {
    flex-direction: column;
  }

  .dashboard-content-grid > .admin-card:first-child,
  .dashboard-content-grid > .admin-card:last-child {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .admin-logo h1 {
    font-size: 1.1rem;
  }

  .admin-subtitle {
    font-size: 0.7rem;
  }

  .mobile-nav {
    width: 100vw;
  }
}

/* Debug helpers - garantir visibilidade em mobile */
@media (max-width: 768px) {
  .mobile-nav-overlay {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 60 !important;
  }

  .mobile-nav {
    display: block !important;
    /* Garantir que não cause overflow */
    right: 0;
    width: min(280px, 100vw);
    max-width: 100vw;
    z-index: 70 !important;
  }

  /* Garantir que elementos fixed funcionem */
  .mobile-nav-overlay,
  .mobile-nav {
    position: fixed !important;
  }

  /* Prevenir overflow horizontal */
  body {
    overflow-x: hidden !important;
  }

  .admin-header .header-container {
    max-width: 100%;
    overflow: hidden;
  }

  /* Garantir que todos os containers não causem overflow */
  .admin-container,
  .container {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Garantir que elementos flex não quebrem o layout */
  .admin-nav .nav-item {
    flex-shrink: 0;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .admin-card-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .admin-card-content {
    padding: 1rem;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 1rem;
  }

  .admin-table .actions {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Category Checkbox Component */
.category-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--background);
}

.category-checkbox:hover {
  background: var(--muted);
  border-color: var(--primary);
}

.category-checkbox input[type="checkbox"] {
  margin: 0;
  width: auto;
}

.category-checkbox
  input[type="checkbox"]:checked
  + .category-color
  + .category-name {
  font-weight: 600;
  color: var(--foreground);
}

.category-checkbox:has(input[type="checkbox"]:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
}

.category-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.category-name {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

/* ================================
   Event Detail Page
   ================================ */
.event-detail-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.event-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.event-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.meta-card {
  background: var(--muted);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.meta-card h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-card p {
  margin: 0;
  font-weight: 500;
}

.event-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.event-content h2 {
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

/* Estilos para conteúdo HTML renderizado do TinyMCE */
.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
.section-content h5,
.section-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.section-content h1:first-child,
.section-content h2:first-child,
.section-content h3:first-child,
.section-content h4:first-child,
.section-content h5:first-child,
.section-content h6:first-child {
  margin-top: 0;
}

.section-content ul,
.section-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  line-height: 1.6;
}

.section-content ul li,
.section-content ol li {
  margin-bottom: 0.5rem;
}

.section-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--muted);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--muted-foreground);
}

.section-content strong {
  font-weight: 600;
  color: var(--foreground);
}

.section-content em {
  font-style: italic;
}

.section-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.section-content a:hover {
  color: var(--primary-hover, var(--primary));
}

.section-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-content th,
.section-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.section-content th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

.section-content tr:last-child td {
  border-bottom: none;
}

.section-content hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.section-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-buttons span {
  font-weight: 500;
  color: var(--muted-foreground);
}

.related-events {
  margin-top: 3rem;
}

.related-events h2 {
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.map-container {
  height: 400px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

@media (max-width: 768px) {
  .event-detail-meta {
    grid-template-columns: 1fr;
  }

  .event-image {
    height: 200px;
  }

  .map-container {
    height: 300px;
  }

  .share-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================
   File Upload Styles
   ================================ */
input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  font-size: 0.875rem;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="file"]:hover {
  border-color: var(--primary);
  background: var(--card);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.current-image img {
  transition: opacity 0.2s ease;
}

.current-image:hover img {
  opacity: 0.8;
}

/* ================================
   New Event Page Design
   ================================ */

/* Hero Section */
.event-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.8) 0%,
    rgba(139, 92, 246, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4rem 0;
}

.event-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: white;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.7);
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-categories {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-category-tag {
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-meta-item svg {
  opacity: 0.8;
}

.hero-action {
  text-align: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  color: var(--primary);
}

.hero-btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-free-entry {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-free-entry h3 {
  margin: 0 0 0.5rem 0;
  color: white;
  font-size: 1.5rem;
}

.hero-free-entry p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.hero-availability {
  margin-top: 1rem;
}

.availability-bar {
  width: 200px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 0.5rem;
}

.availability-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.availability-text {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Event Container */
.event-container {
  margin-top: -2rem;
  position: relative;
  z-index: 1;
}

.event-content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  margin-bottom: 4rem;
}

.event-main-content {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* Content Sections */
.content-section {
  margin-bottom: 3rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.75rem 0;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--foreground);
}

/* Location */
.location-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.location-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.copy-address {
  background: var(--card);
  border: 1px solid var(--border);
}

.copy-address:hover {
  background: var(--muted);
  border-color: var(--primary);
}

.location-details h4 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--foreground);
}

.location-details p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.location-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.location-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

/* Map Container */
.map-container {
  position: relative;
  margin-bottom: 1rem;
}

.modern-map {
  height: 400px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.modern-map:hover {
  box-shadow: var(--shadow-lg);
}

.map-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.map-info h5 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  color: var(--foreground);
  font-size: 1rem;
}

.map-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Custom Leaflet marker styles */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  font-family: inherit !important;
}

.leaflet-popup-tip {
  background: white !important;
}

/* Custom marker animation */
.custom-marker {
  animation: markerBounce 0.6s ease-out;
}

@keyframes markerBounce {
  0% {
    transform: translateY(-20px) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateY(-5px) scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Share Buttons */
.share-intro {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  font-size: 1rem;
}

.modern-share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn.whatsapp:hover {
  background: #1db954;
  transform: translateY(-1px);
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.facebook:hover {
  background: #166fe5;
  transform: translateY(-1px);
}

.share-btn.copy {
  background: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.share-btn.copy:hover {
  background: var(--card);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Sidebar */
.event-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.quick-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.info-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.contact-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  color: white;
}

/* Related Events */
.related-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

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

.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.related-content h4 {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  color: var(--foreground);
}

.related-date {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.related-location {
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.related-link:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .event-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .event-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-meta {
    align-items: center;
  }

  .event-main-content {
    padding: 1.5rem;
  }

  .sidebar-card {
    padding: 1.5rem;
  }

  .location-info {
    flex-direction: column;
    gap: 1rem;
  }

  .location-actions {
    flex-direction: row;
    gap: 0.5rem;
  }

  .modern-map {
    height: 300px;
  }

  .map-overlay {
    position: static;
    margin-top: 1rem;
    background: var(--card);
    backdrop-filter: none;
  }

  .modern-share-buttons {
    flex-direction: column;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
