:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --success: #16a34a;
  --danger: #dc2626;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  color: var(--text);
}

body {
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.appShell {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbarInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.brandBadge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.navLinks {
  display: flex;
  gap: 14px;
  align-items: center;
}

.navLink {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.25s ease;
}

.navLink:hover {
  background: #eef2ff;
  color: var(--primary);
}

.hero {
  padding: 56px 0 30px;
}

.heroCard {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.heroTitle {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 800;
}

.heroText {
  font-size: 1.03rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 620px;
}

.heroStats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.statCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  min-width: 140px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.statNumber {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.statLabel {
  color: var(--muted);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section {
  padding: 22px 0 34px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.cardTitle {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.cardText {
  color: var(--muted);
  margin: 0 0 18px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #334155;
  font-size: 0.95rem;
}

.input,
.select,
.textarea,
.fileInput {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 0.98rem;
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.fileWrap {
  border: 2px dashed #cbd5e1;
  background: #f8fbff;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  transition: 0.25s ease;
}

.fileWrap:hover {
  border-color: var(--primary);
  background: #f2f7ff;
}

.btnRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.96rem;
  font-weight: 700;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btnPrimary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.btnPrimary:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.btnSecondary {
  background: #eef2ff;
  color: var(--primary);
}

.btnSecondary:hover {
  background: #dbeafe;
}

.btnDanger {
  background: #fee2e2;
  color: var(--danger);
}

.btnSuccess {
  background: #dcfce7;
  color: var(--success);
}

.infoStrip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pill {
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.eventHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.eventTitle {
  font-size: 2rem;
  margin: 0;
  font-weight: 800;
}

.eventMeta {
  color: var(--muted);
  margin-top: 6px;
}

.qrCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.photoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.photoCard {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: 0.25s ease;
}

.photoCard:hover {
  transform: translateY(-4px);
}

.photoPreview {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #e2e8f0;
}

.photoBody {
  padding: 14px;
}

.photoName {
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e293b;
  word-break: break-word;
}

.emptyState {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.loaderBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 10px;
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #dbeafe;
  border-top-color: var(--primary);
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footerSpace {
  height: 40px;
}

/* Responsive */
@media (max-width: 960px) {
  .heroCard {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }

  .eventHeader {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .navbarInner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .navLinks {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 28px;
  }

  .card {
    padding: 18px;
  }

  .heroCard {
    padding: 22px;
    border-radius: 22px;
  }

  .heroTitle {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
  }

  .btnRow {
    flex-direction: column;
  }

  .photoGrid {
    grid-template-columns: 1fr;
  }

  .photoPreview {
    height: 240px;
  }
}




button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.navLink.active {
  background: #eef2ff;
  color: var(--primary);
}

.input::placeholder,
.textarea::placeholder {
  color: #94a3b8;
}

.photoCard a.btn {
  width: 100%;
}

@media (min-width: 641px) {
  .photoCard .btnRow .btn {
    width: auto;
  }
}


.statusSuccess {
  margin-top: 14px;
  color: #15803d;
  font-weight: 700;
}

.statusError {
  margin-top: 14px;
  color: #dc2626;
  font-weight: 700;
}

.fileList {
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.fileList li {
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.92rem;
}