:root {
  --primary: #667eea;
  --primary-soft: rgba(102, 126, 234, 0.1);
  --primary-dark: #764ba2;
  --accent-pink: #f093fb;
  --bg: transparent;
  --card-bg: rgba(255, 255, 255, 0.6);
  --sidebar-bg: rgba(255, 255, 255, 0.35);
  --sidebar-text: #4a5568;
  --sidebar-text-active: #5a67d8;
  --border-soft: rgba(255, 255, 255, 0.4);
  --text-main: #2d3748;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-gradient: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

/* ... existing styles ... */

.event-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* Top gradient bar */

.app-shell {
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  padding: 0;
}

.app-inner {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
}

/* Topbar */

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid #eaecf5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.topbar-title {
  display: flex;
  flex-direction: column;
}

.topbar-title span:first-child {
  font-weight: 600;
  font-size: 0.95rem;
}

.topbar-title span:last-child {
  font-size: 0.8rem;
  color: #6b7280;
}

.topbar-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
}

.badge-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 500;
}

/* Layout main areas */

.layout {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* Sidebar */

.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border-soft);
}

.sidebar-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem 0.25rem;
  opacity: 0.7;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-link span.icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sidebar-link.active {
  background: #ffffff;
  color: var(--sidebar-text-active);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-link.active span.icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.sidebar-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.4);
  color: #1f2937;
}

/* User section bottom */

.sidebar-bottom {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.8rem;
}

/* Main content */

.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background: transparent;
}

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

.page-header h1 {
  font-size: 1.4rem;
  margin: 0;
}

.page-header-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-soft);
}

.card-title {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.card-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Two-column section */

.grid-2 {
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  gap: 1rem;
  margin-top: 1rem;
}

.pill-positive {
  color: #22c55e;
  font-weight: 500;
}

.pill-negative {
  color: #ef4444;
  font-weight: 500;
}

/* Simple “chart-like” areas */

.fake-chart {
  height: 120px;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(115, 103, 240, 0.12), transparent);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Buttons & forms */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: #4b5563;
}

/* Tables */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table th,
.table td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
}

.table th {
  text-align: left;
  background: #f9fafb;
}

/* Login page */

.login-page {
  background: radial-gradient(circle at top left, #ff9f43 0, #7367f0 40%, #28c76f 100%);
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.login-container h1 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.login-container p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #374151;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

/* Sidebar Branding */

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
}

.sidebar-logo-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
}

.sidebar-user {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #ffffff;
}

.sidebar-user-info {
  flex: 1;
  font-size: 0.85rem;
}

.sidebar-user-name {
  font-weight: 600;
  color: #ffffff;
  display: block;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-logout {
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.sidebar-logout:hover {
  opacity: 1;
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.65);
  color: var(--sidebar-text-active);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.sidebar-link.active span.icon {
  background: var(--accent-gradient);
  color: #ffffff;
}

.sidebar-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.4);
  color: var(--sidebar-text-active);
  transform: translateX(4px);
}

/* Event Cards */

.event-count-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.event-count-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.event-count-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.event-count-info h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.event-count-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.event-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-soft);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.event-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0;
}

.event-qr {
  width: 48px;
  height: 48px;
}

.btn-action {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #f8fafc;
  color: #4b5563;
  font-weight: 500;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-action:hover {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
}

.create-event-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.create-event-card h2 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.event-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.form-group input {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-create {
  background: linear-gradient(135deg, #7367f0, #4f46e5);
  color: white;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(115, 103, 240, 0.3);
}

.events-section h2 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2933;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.event-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

.event-qr {
  width: 80px;
  height: 80px;
  background: #1f2933;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.event-info {
  flex: 1;
}

.event-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.25rem 0;
  color: #1f2933;
}

.event-uploads {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

.event-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-action {
  flex: 1;
  min-width: 80px;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: white;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #374151;
}

.btn-action:hover {
  background: #f9fafb;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-action.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-action.primary:hover {
  background: var(--primary-dark);
}

/* Support Tickets */

.support-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-ticket {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.support-ticket:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.support-ticket-content {
  flex: 1;
}

.support-ticket-subject {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.25rem 0;
  color: #1f2933;
}

.support-ticket-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

.support-ticket-status {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-open {
  background: #fef3c7;
  color: #92400e;
}

.status-in_progress {
  background: #dbeafe;
  color: #1e40af;
}

.status-resolved {
  background: #d1fae5;
  color: #065f46;
}

.status-closed {
  background: #f3f4f6;
  color: #6b7280;
}

.badge-source {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  vertical-align: middle;
}


/* Utility Classes */

.text-white {
  color: white !important;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white;
}

.page-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2rem 0;
}