

:root { --bg: #050607; --accent: #00e5ff; --card: #0b0d10; --text: #ffffff; --muted: #a7b4c0; --panel: #0b0d10; --border: rgba(255,255,255,0.10)}
* { box-sizing: border-box; }
.card {
  width: 100%; max-width: 420px; background: var(--card);
  border: 1px solid rgba(0,229,255,0.25); border-radius: 18px;
  padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
body {
  margin: 0; font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text);
  display: grid; place-items: center; min-height: 100vh; padding: 20px;
}
.logo { text-align: center; margin-bottom: 16px; }
.logo img { height: 72px; filter: invert(1) brightness(2); }
h1 { text-align: center; margin: 0 0 4px; letter-spacing: 2px; font-weight: 600; }
p.sub { text-align: center; margin: 0 0 20px; color: #cfd8dc; font-size: 14px; }
label { display: block; margin-bottom: 6px; font-size: 14px; color: #cfd8dc; }
input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
  background: #0f1115; color: var(--text); font-size: 15px; outline: none; transition: border-color .2s;
}
input:focus { border-color: var(--accent); }
.field { margin-bottom: 14px; }
button {
  width: 50%; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 14px;
  background: var(--accent); color: #000; font-weight: 700; letter-spacing: 1px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
button:hover {background-color: #0f1115; box-shadow: 0 10px 30px rgba(0,229,255,0.25); color: white; }
.error { color: #ff6b6b; font-size: 13px; min-height: 18px; margin-top: 6px; text-align: center; }

/* Admin-Layout */
body.admin-shell {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}
.sidebar {
  position: fixed; left:0; top:0; bottom:0;
  width: 260px; /* einheitlich */
  padding: 18px 14px;
  background: #06080b;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 18px;
  z-index: 1100;
}
.content {
  margin-left: 260px; /* match sidebar width */
  padding: 28px;
}

.sidebar-logo {
  display: flex;
  justify-content: center;
  padding: 10px;
}
.sidebar-logo img {
  height: 60px;
  filter: invert(1) brightness(2);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-user {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.user-label { margin: 0; color: #8fd7ff; font-size: 12px; letter-spacing: 0.5px; }
.user-email { margin: 0; color: #fff; font-size: 13px; word-break: break-all; }
#logout-btn.ghost-btn { padding: 8px 10px; font-size: 13px; }


.nav-btn {
  width: 100%;
  padding: 12px 14px;
  text-align: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.nav-btn:hover {
  border-color: rgba(0,229,255,0.5);
  background: rgba(0,229,255,0.08);
}
.nav-btn.active {
  border-color: var(--accent);
  background: rgba(0,229,255,0.14);
  color: var(--text);
  transform: translateX(2px);
}

/* Main Body */

/* Ticket-Card: breite, aber passt sich der Höhe an */
/* body.admin-shell .card {
  width: 60vw;
  max-width: 1200px;
  min-height: 0;
  height: auto;
  margin: 24px;
  padding: 32px;
} */
/* Desktop: breite Cards */
@media (min-width: 801px) {
  body.admin-shell .card {
    width: 80vw;
    max-width: 1280px;
    margin: 24px;
    padding: 32px;
  }
}




.card-wide {
  margin: 24px;
  padding: 32px;
  min-height: 480px; /* groß */
}

.banner-upload { display:flex; flex-direction:column; gap:10px; }
.banner-label { font-weight:700; letter-spacing:0.5px; }
.banner-drop {
  position: relative;
  width: 100%;
  aspect-ratio: 1256 / 620; /* hält die Rendergröße/Ratio */
  max-width: 1256px;        /* optional: deckelt Breite */
  border: 1px dashed rgba(0,229,255,0.4);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(5,6,7,0.7));
  overflow: hidden;
}

.banner-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;           /* unsichtbar, aber klickbar */
  cursor: pointer;
  z-index: 2;
}

.banner-placeholder {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:6px; color:#8fd7ff;
  text-align:center; padding:16px;
  pointer-events: none; /* Input liegt oben */
}

.banner-preview {
  width: 100%;
  height: 100%;
  object-fit: cover; /* füllt den Rahmen, schneidet ggf. */
}

.card-grid {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 16px;
  margin-top: 20px;
}

.subcard {
  background: #0f1115;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px;
  min-height: 200px;
}


.subcard-left textarea,
.field textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0f1115;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  resize: vertical;       /* bei Bedarf erlauben */
}

.subcard-left textarea:focus {
  border-color: #00e5ff;
  outline: none;
}

@media (max-width: 900px) {
.card-grid {
  grid-template-columns: 1fr;
}}

/* Calendar-Icon im Input auf hell stellen */
.date-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.6);
  opacity: 0.9;
  cursor: pointer;
}

.actions { margin-top: 16px; }
.primary-btn {
  background:#00e5ff; color:#000; border:1px solid #00e5ff;
  border-radius:12px; padding:12px 16px; cursor:pointer;
  font-weight:700; letter-spacing:1px;
}
.primary-btn:hover { filter: brightness(1.05); }

/* SECTION PRICES */    
#add-price.ghost-btn {
  padding: 6px 10px;
  font-size: 13px;
}
.prices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.price-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-row {
  display: grid;
  grid-template-columns: 2fr 80px 40px;
  gap: 8px;
  align-items: center;
}
.price-row .price-link {
  grid-column: 1 / -1; /* Link über volle Breite unter der ersten Zeile */
}

.price-row input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0f1115;
  color: #fff;
}
.price-row input:focus { border-color: #00e5ff; outline: none; }
.remove-price {
  width: 100%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}

/* SECTION EVENTS */
.event-header, .event-row {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 40px; /* letzte Spalte für das Lösch-Kreuz */
  gap: 12px;
  align-items: center;
}
.event-header {
  font-weight: 700;
  color: #8fd7ff;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.event-row {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: #0f1115;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.event-delete {
  justify-self: end;
  background: transparent;
  color: #ff6b6b;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.detail-panel {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.events-list { 
  display:grid; 
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); 
  gap:12px; 
}
.event-item 
{ background:#0f1115; border:1px solid rgba(255,255,255,0.12); 
  border-radius:10px; 
  padding:12px; 
  display:flex; 
  flex-direction:column; 
  gap:6px; 
}
.event-item img { 
  width:100%; 
  height:140px; 
  object-fit:cover; 
  border-radius:8px; 
}
.event-prices { 
  display:flex; 
  flex-wrap:wrap;
  gap:6px; 
  font-size:13px; 
  color:#8fd7ff; 
}
.muted { 
  color:#a7b4c0; 
  font-size:13px; 
}

/* Responsive: Mobile Sidebar als Hamburger */
/* Desktop: keine Anzeige */
.menu-toggle { display: none; }

/* Mobile */
@media (max-width: 800px) {
  body.admin-shell { padding-top: 70px; }

  .menu-toggle {
    all: unset;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 12px; left: 12px;
    width: 44px; height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0f1115;
    color: var(--text);
    z-index: 1200;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  }
  .menu-toggle .bar {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  body.menu-open .menu-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Sidebar slide-in */
  .sidebar {
    width: 240px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 12px 0 30px rgba(0,0,0,0.45);
  }
  body.menu-open .sidebar { transform: translateX(0); }

  /* Content & Cards auf Mobile */
  .content { margin-left: 0; padding: 16px; }
  body.admin-shell .card { width:100%; max-width:100%; margin:12px 0; padding:20px; }
}



  /* Logo mittig im Header-Bereich */
  .sidebar-logo { justify-content: center; }
  .sidebar-logo img { height: 48px; }



.event-row {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: #0f1115;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 10px;
}
.event-row.active-row {
  border-color: rgba(0, 200, 0, 0.6);
  background-color: rgba(0, 200, 0, 0.114) ;
}
.event-row.inactive-row {
  border-color: rgba(255, 80, 80, 0.8);
  background-color: rgba(255, 80, 80, 0.114);
}
.event-row.active-row:hover {
  border-color: #00e5ff;
  background-color: #0b0d10 ;
}
.event-row.inactive-row:hover {
  border-color: #00e5ff;
  background-color: #0b0d10;
}

.scan-log {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scan-entry {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: #0f1115;
}
.scan-entry.valid   { border-color: rgba(0,200,0,0.6); }
.scan-entry.invalid { border-color: rgba(255,80,80,0.8); }
