* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  background: #f4f4f7;
  color: #17171c;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* Login */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #7A2BFF33, transparent 50%),
              radial-gradient(circle at 80% 80%, #FF3B3033, transparent 50%),
              #0b0b0f;
}
.login-box {
  background: #17171f;
  padding: 48px;
  border-radius: 20px;
  width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  text-align: center;
}
.login-logo { color: #fff; font-weight: 800; font-size: 24px; margin-bottom: 4px; }
.login-sub { color: #9a9aa5; font-size: 14px; margin-bottom: 24px; }
.login-box input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #2c2c38;
  background: #0f0f14;
  color: #fff;
  margin-bottom: 14px;
  font-size: 15px;
}
.login-box button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #FF3B30, #FFB800);
  color: #0b0b0f;
  font-weight: 800;
  font-size: 15px;
}
.login-error { color: #ff6b6b; margin-top: 14px; font-size: 13px; }

/* App shell */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: #17171f;
  color: #fff;
}
.top-bar-title { font-weight: 800; font-size: 18px; }
.top-bar-right { display: flex; align-items: center; gap: 14px; }
.current-user { color: #9a9aa5; font-size: 13px; font-weight: 600; }
.btn-ghost {
  background: transparent;
  border: 1px solid #3a3a48;
  color: #d9d9e0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
}
.btn-ghost-dark {
  background: #fff;
  border: 1px dashed #c7c7d1;
  color: #4a4a55;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  align-self: flex-start;
}

.venue-tabs {
  display: flex;
  gap: 10px;
  padding: 18px 32px 0 32px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
}
.venue-tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: #6b6b76;
  border-bottom: 3px solid transparent;
}
.venue-tab.active {
  color: #17171c;
  border-bottom-color: #FF3B30;
}
.venue-tab.users-tab {
  margin-left: auto;
  color: #7A2BFF;
}

.sub-nav { display: flex; gap: 8px; margin-bottom: 18px; }
.sub-tab {
  border: 1px solid #dcdce4;
  background: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: #6b6b76;
}
.sub-tab.active { background: #17171c; color: #fff; border-color: #17171c; }

.main { padding: 28px 32px 80px 32px; max-width: 1100px; margin: 0 auto; }
.main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.main-header h2 { font-size: 22px; }
.main-header-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.display-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.display-link { font-size: 13px; color: #7A2BFF; text-decoration: none; font-weight: 600; }

.clock-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #4a4a55;
  background: #fff;
  border: 1px solid #dcdce4;
  padding: 10px 14px;
  border-radius: 8px;
}
.clock-toggle input { width: auto; }
.clock-toggle select {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #4a4a55;
  border: 1px solid #dcdce4;
  border-radius: 6px;
  padding: 4px 6px;
  background: #fff;
}

.btn-primary {
  background: #17171c;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}
.btn-danger {
  background: #fff0f0;
  color: #d92626;
  border: 1px solid #ffd3d3;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

.content-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.content-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ececf2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.content-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.content-card-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: #17171f;
  position: relative;
}
.content-card-img.no-image {
  background: linear-gradient(135deg, #7A2BFF, #FF3B30);
}
.content-card-img.video-media {
  background: linear-gradient(135deg, #1a1a24, #3a3a48);
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-card-img.video-media::after {
  content: '▶';
  color: rgba(255,255,255,0.85);
  font-size: 28px;
}
.content-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.content-badge.inactive { background: rgba(217,38,38,0.85); }
.content-card-body { padding: 14px 16px 16px 16px; }
.content-card-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.content-card-sub { font-size: 13px; color: #6b6b76; margin-bottom: 8px; min-height: 16px; }
.content-card-meta { font-size: 11.5px; color: #9a9aa5; font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9a9aa5;
  font-size: 15px;
}

/* Gebruikers */
.users-list { display: flex; flex-direction: column; gap: 10px; }
.user-row {
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.user-row:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.user-row-name { font-weight: 700; font-size: 15px; }
.user-row-meta { font-size: 12.5px; color: #9a9aa5; margin-top: 3px; }
.role-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
  background: #17171c;
  color: #fff;
}
.role-pill.manager { background: #ede9fe; color: #6d28d9; }

/* Productrijen in menu-groep modal */
.product-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.product-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #ececf2;
  background: #fafafc;
  border-radius: 10px;
  padding: 10px;
}
.product-row-main { display: flex; gap: 8px; align-items: center; }
.product-row input {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #dcdce4;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}
.product-row-main .p-name { flex: 2 1 0; min-width: 0; }
.product-row-main .p-price { flex: 0 0 100px; }
.product-row .p-desc { width: 100%; }
.product-row-remove {
  flex: 0 0 auto;
  background: #fff0f0;
  color: #d92626;
  border: 1px solid #ffd3d3;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
}
.hint { font-size: 12px; color: #9a9aa5; margin-top: -2px; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,14,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #ececf2;
}
.modal-header h3 { font-size: 17px; }
.modal-close { background: none; border: none; font-size: 22px; color: #9a9aa5; }
.modal-body { padding: 20px 24px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.modal-body label { font-size: 12.5px; font-weight: 700; color: #4a4a55; margin-top: 12px; }
.modal-body input[type="text"],
.modal-body input[type="date"],
.modal-body input[type="time"],
.modal-body input[type="number"],
.modal-body input[type="file"],
.modal-body select {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #dcdce4;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.modal-body input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #dcdce4;
  cursor: pointer;
}
.image-preview { margin-top: 8px; width: 100%; max-height: 160px; object-fit: cover; border-radius: 8px; }

.type-choice, .days-choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.type-btn, .day-btn {
  border: 1px solid #dcdce4;
  background: #fff;
  padding: 9px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #4a4a55;
}
.type-btn.active { background: #17171c; color: #fff; border-color: #17171c; }
.day-btn.active { background: #FF3B30; color: #fff; border-color: #FF3B30; }

.row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-split > div { display: flex; flex-direction: column; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 600 !important;
  color: #17171c !important;
}
.checkbox-row input { width: auto !important; }

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 10px;
}
.modal-footer .btn-primary { margin-left: auto; }

/* ---------- Schermen (menu-schermen als kaartjes) ---------- */
.screen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.screen-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ececf2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.screen-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.screen-card-preview {
  position: relative;
  height: 150px;
  background: #0f0f14;
  overflow: hidden;
}
.screen-card-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  border: none;
  pointer-events: none;
  transform-origin: top left;
}
.screen-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}
.screen-card-body { padding: 14px 16px 16px 16px; }
.screen-card-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.screen-card-sub { font-size: 13px; color: #6b6b76; }

/* ---------- Scherm-editor modal ---------- */
.modal-wide { max-width: 920px; }
.screen-editor-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  max-height: calc(90vh - 66px);
}
.screen-editor-pages {
  padding: 20px 24px 24px 24px;
  overflow-y: auto;
  border-right: 1px solid #ececf2;
  display: flex;
  flex-direction: column;
}
.screen-editor-pages-head {
  font-size: 12.5px;
  font-weight: 700;
  color: #4a4a55;
  margin-bottom: 12px;
}
.page-list { display: flex; flex-direction: column; gap: 10px; }
.page-row {
  border: 1px solid #ececf2;
  background: #fafafc;
  border-radius: 10px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-row-order { display: flex; flex-direction: column; gap: 2px; }
.page-row-order button {
  border: 1px solid #dcdce4;
  background: #fff;
  width: 22px;
  height: 20px;
  font-size: 10px;
  border-radius: 4px;
  color: #4a4a55;
  line-height: 1;
}
.page-row-order button:disabled { opacity: 0.3; cursor: default; }
.page-row-type {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 100px;
  color: #fff;
  background: #7A2BFF;
}
.page-row-type.content { background: #17a673; }
.page-row-main { flex: 1 1 auto; min-width: 0; cursor: pointer; }
.page-row-title { font-weight: 700; font-size: 14px; }
.page-row-meta { font-size: 12px; color: #9a9aa5; margin-top: 2px; }
.page-row-inactive { color: #d92626; font-weight: 700; }
.page-row-actions { display: flex; gap: 6px; }
.page-row-actions button {
  border: 1px solid #dcdce4;
  background: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 14px;
}
.page-add-row { display: flex; gap: 10px; margin-top: 16px; }
.page-add-row .btn-ghost-dark { margin-top: 0; }

.screen-editor-preview {
  padding: 20px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafafc;
}
.preview-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #4a4a55;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-refresh {
  border: 1px solid #dcdce4;
  background: #fff;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  font-size: 14px;
  color: #4a4a55;
}
.preview-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0f14;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  border: none;
  transform-origin: top left;
}

/* ---------- Kolommen binnen een menu-pagina ---------- */
.page-columns { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.column-block {
  border: 1px solid #dcdce4;
  background: #fafafc;
  border-radius: 10px;
  padding: 12px;
}
.column-block-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.column-block-head input.c-title {
  flex: 1 1 auto;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #dcdce4;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
}
.column-remove {
  flex: 0 0 auto;
  background: #fff0f0;
  color: #d92626;
  border: 1px solid #ffd3d3;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
}
.column-block .product-rows { margin-top: 0; }
.column-add-product {
  margin-top: 8px;
  border: 1px dashed #c7c7d1;
  background: #fff;
  color: #4a4a55;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .screen-editor-body { grid-template-columns: 1fr; }
  .screen-editor-pages { border-right: none; border-bottom: 1px solid #ececf2; }
}

.google-login-wrap { margin: 0 0 1.2rem; text-align: center; }
.google-login-wrap #googleSignInBtn { display: flex; justify-content: center; margin-bottom: 0.8rem; }
.login-divider { display: flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.4); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.15); }
