/* =========================================================
   JazzHub Local - Theme-aware (Light + Dark)
   ========================================================= */

/* =========================================================
   CSS Custom Properties - Light Theme (default)
   ========================================================= */

:root {
  /* Page */
  --bg-page:        #eef0f4;
  --bg-content:     #fff;
  --bg-subtle:      #f5f6fa;
  --bg-hover:       #f8f9fc;

  /* Text */
  --text-primary:   #222;
  --text-secondary: #444;
  --text-muted:     #888;
  --text-faint:     #aaa;

  /* Borders */
  --border:         #e0e0e8;
  --border-subtle:  #f0f0f5;
  --border-strong:  #d0d0dc;

  /* Sidebar */
  --sidebar-bg:     #111118;
  --sidebar-border: #0a0a10;

  /* Heading */
  --heading-color:  #1a1a1a;

  /* Accent colors (unchanged in both themes) */
  --red:            #e94560;
  --red-dark:       #c0253e;
  --blue:           #1ca5d2;

  /* Components */
  --btn-bg:         #fff;
  --btn-color:      #444;
  --btn-border:     #d0d0dc;
  --btn-hover-bg:   #f5f5fa;
  --btn-hover-border: #b0b0b0;

  --input-bg:       #fff;
  --input-color:    #222;
  --input-border:   #d0d0dc;

  --modal-bg:       #fff;
  --modal-border:   #e0e0e8;
  --modal-heading:  #1a1a1a;

  --card-bg:        #fff;
  --card-border:    #e0e0e8;
  --card-heading:   #1a1a1a;

  --table-bg:       #fff;
  --table-th-bg:    #f7f7fa;
  --table-th-color: #888;
  --table-td-color: #333;
  --table-border:   #e0e0e8;
  --table-row-sep:  #f0f0f5;
  --table-hover:    #fafafa;

  --cal-grid-bg:    #fff;
  --cal-header-bg:  #f7f7fa;
  --cal-cell-empty: #fafafa;
  --cal-cell-border:#f0f0f5;
  --cal-day-num:    #333;
  --cal-tab-border: #e8e8e8;

  --year-tab-bg:        #e2e2e8;
  --year-tab-color:     #888;
  --year-tab-hover-bg:  #b0b0b0;
  --year-tab-hover-color:#fff;
  --year-tab-active-bg: #8a8a8a;
  --year-tab-active-color:#fff;

  --overview-card-bg:   #fff;
  --overview-card-border:#ececec;
  --overview-pill-bg:   #f5f5f7;
  --overview-pill-color:#555;
  --overview-year-color:#222;

  --tag-list-bg:    #f5f5f8;
  --tag-list-border:#e4e4ec;
  --tag-list-link:  #1a1a1a;

  --thumb-placeholder: #f0f0f5;

  --settings-logo-bg: #1a1a1a;

  --icon-btn-hover-bg: #f0f0f5;
  --icon-btn-hover-color: #555;

  --search-placeholder: #aaa;

  --form-actions-border: #e8e8f0;
  --inline-form-border:  #e8e8f0;
  --summary-border:      #e8e8f0;
  --summary-subtotal-bg: #f7f7fa;
  --summary-subtotal-border: #d8d8e8;

  --social-link-bg:     #fafafa;
  --social-link-border: #ddd;
  --social-link-color:  #444;

  --flash-success-bg:   rgba(34,170,100,0.1);
  --flash-success-color:#1a8a55;
  --flash-success-border:rgba(34,170,100,0.25);

  /* Theme toggle */
  --theme-toggle-color: rgba(255,255,255,0.55);
  --theme-toggle-hover: rgba(255,255,255,0.85);

  /* ── Facelift design tokens ── */
  --dashboard-grid-pattern: radial-gradient(#e2e8f0 1.5px, transparent 1.5px);
  
  /* Accent Red Gradient (Hero card) */
  --accent-gradient: linear-gradient(135deg, #e94560 0%, #c0253e 100%);
  --accent-glow: rgba(233, 69, 96, 0.25);
  --success-text: #065f46;
  --success-bg: #d1fae5;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-modal: 0 32px 80px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.1);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 14px;
  --space-lg: 20px;
  --space-xl: 32px;

  /* Modal header/footer */
  --modal-header-bg: #fafafa;
}

/* =========================================================
   CSS Custom Properties - Dark Theme
   Only page/content area goes dark; sidebar + accents unchanged.
   ========================================================= */

[data-theme="dark"] {
  /* Page backgrounds — neutral dark grey */
  --bg-page:        #1a1a1a;
  --bg-content:     #232323;
  --bg-subtle:      #2d2d2d;
  --bg-hover:       #2d2d2d;

  /* Text */
  --text-primary:   #e8e8e8;
  --text-secondary: #c0c0c0;
  --text-muted:     #909090;
  --text-faint:     #606060;

  /* Borders */
  --border:         #383838;
  --border-subtle:  #2d2d2d;
  --border-strong:  #484848;

  /* Heading */
  --heading-color:  #e8e8e8;

  /* Buttons */
  --btn-bg:         #2d2d2d;
  --btn-color:      #c0c0c0;
  --btn-border:     #484848;
  --btn-hover-bg:   #383838;
  --btn-hover-border: #585858;

  /* Inputs */
  --input-bg:       #2d2d2d;
  --input-color:    #e8e8e8;
  --input-border:   #484848;

  /* Modal */
  --modal-bg:       #232323;
  --modal-border:   #383838;
  --modal-heading:  #e8e8e8;

  /* Cards */
  --card-bg:        #232323;
  --card-border:    #383838;
  --card-heading:   #e8e8e8;

  /* Tables */
  --table-bg:       #232323;
  --table-th-bg:    #2d2d2d;
  --table-th-color: #909090;
  --table-td-color: #c0c0c0;
  --table-border:   #383838;
  --table-row-sep:  #2d2d2d;
  --table-hover:    #2d2d2d;

  /* Calendar */
  --cal-grid-bg:    #232323;
  --cal-header-bg:  #2d2d2d;
  --cal-cell-empty: #1e1e1e;
  --cal-cell-border:#2d2d2d;
  --cal-day-num:    #c0c0c0;
  --cal-tab-border: #383838;

  /* Year tabs */
  --year-tab-bg:         #2d2d2d;
  --year-tab-color:      #909090;
  --year-tab-hover-bg:   #484848;
  --year-tab-hover-color:#e8e8e8;
  --year-tab-active-bg:  #585858;
  --year-tab-active-color:#fff;

  /* Overview cards */
  --overview-card-bg:    #232323;
  --overview-card-border:#383838;
  --overview-pill-bg:    #2d2d2d;
  --overview-pill-color: #909090;
  --overview-year-color: #e8e8e8;

  /* Sidebar */
  --sidebar-bg:     #111118;
  --sidebar-border: #0a0a10;

  /* Tag list */
  --tag-list-bg:    #2d2d2d;
  --tag-list-border:#383838;
  --tag-list-link:  #e8e8e8;

  /* Misc */
  --thumb-placeholder:   #2d2d2d;
  --settings-logo-bg:    #111111;
  --icon-btn-hover-bg:   #2d2d2d;
  --icon-btn-hover-color:#c0c0c0;
  --search-placeholder:  #606060;

  --form-actions-border: #383838;
  --inline-form-border:  #383838;
  --summary-border:      #383838;
  --summary-subtotal-bg: #2d2d2d;
  --summary-subtotal-border: #484848;

  --social-link-bg:     #2d2d2d;
  --social-link-border: #484848;
  --social-link-color:  #c0c0c0;

  --flash-success-bg:   rgba(34,170,100,0.12);
  --flash-success-color:#4ec98a;
  --flash-success-border:rgba(34,170,100,0.25);

  /* ── Facelift dark overrides ── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.15);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.1);
  --shadow-modal: 0 32px 80px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.2);
  --modal-header-bg: #1e1e1e;
}

/* =========================================================
   Reset
   ========================================================= */

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

/* =========================================================
   Base
   ========================================================= */

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   Sidebar
   ========================================================= */

.sidebar {
  width: 260px;
  min-height: 100vh;
  background:
    radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(180deg, #16161e 0%, #111118 40%, #0d0d14 100%);
  background-size: 24px 24px, 100% 100%;
  border-right: none;
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Collapsed sidebar: icon-only strip */
body.sidebar-collapsed .sidebar {
  width: 48px;
}
body.sidebar-collapsed .sidebar .nav-item span,
body.sidebar-collapsed .sidebar .sidebar-logo-text,
body.sidebar-collapsed .sidebar .sidebar-logo-img,
body.sidebar-collapsed .sidebar-bottom .nav-item span {
  display: none;
}
body.sidebar-collapsed .sidebar .nav-item {
  justify-content: center;
  padding: 7px 0;
}
body.sidebar-collapsed .nav-item.active {
  border-left-color: var(--red);
}
body.sidebar-collapsed .sidebar .sidebar-logo {
  justify-content: center;
  padding: 14px 0;
}
body.sidebar-collapsed .sidebar-toggle-btn {
  margin: 0 auto;
}
body.sidebar-collapsed .sidebar-toggle-btn .toggle-arrow {
  transform: rotate(180deg);
}

/* Toggle button */
.sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: none;
  cursor: pointer;
  color: #888;
  margin: 10px 12px 4px auto;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.sidebar-toggle-btn:hover {
  background: rgba(255,255,255,0.13);
  color: #ccd;
}
.sidebar-toggle-btn .toggle-arrow {
  transition: transform 0.2s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 0 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  position: relative;
}

.sidebar-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,69,96,0.3), transparent);
}

.sidebar-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.sidebar-logo-img {
  height: 100px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.sidebar-logo-icon {
  display: none;
  height: 44px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
}

body.sidebar-collapsed .sidebar-logo-full {
  display: none;
}

body.sidebar-collapsed .sidebar-logo-icon {
  display: block;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-bottom {
  padding: 12px 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.sidebar-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.sidebar-signature {
  text-align: center;
  padding: 6px 8px 4px;
}
.sidebar-signature img {
  height: 72px;
  width: auto;
  max-width: 200px;
  opacity: 0.45;
  display: inline-block;
}
body.sidebar-collapsed .sidebar-signature {
  display: none;
}

.sidebar-copyright {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  padding: 0 8px 10px;
  margin: 0;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
}
body.sidebar-collapsed .sidebar-copyright {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  border-left: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.18), rgba(233, 69, 96, 0.08));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.08);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--red);
  box-shadow: 0 0 8px rgba(233, 69, 96, 0.4);
}

.nav-item.active .nav-icon {
  opacity: 1;
  color: var(--red);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.2s, color 0.2s;
}

/* Theme toggle button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--theme-toggle-color);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant: all-small-caps;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  margin-top: 4px;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--theme-toggle-hover);
}
.theme-toggle-btn .nav-icon {
  opacity: 0.65;
  width: 13px;
  height: 13px;
}
body.sidebar-collapsed .theme-toggle-btn span {
  display: none;
}
body.sidebar-collapsed .theme-toggle-btn {
  justify-content: center;
  padding: 7px 0;
}

/* =========================================================
   Page wrapper (offset for sidebar)
   ========================================================= */

.page-wrapper {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
}
body.sidebar-collapsed .page-wrapper {
  margin-left: 48px;
}

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  box-sizing: border-box;
}

/* Wider layout for content-rich pages */
main:has(.bk-layout),
main:has(.band-card-grid),
main:has(.bookings-page),
main:has(.venues-page),
main:has(.contacts-page),
main:has(.musicians-page),
main:has(.kalender-page),
main:has(.discografie-page),
main:has(.relaties-page),
main:has(.settings-page),
main:has(.eboekhouden-page),
main:has(.band-detail-page),
main:has(.musician-detail-page),
main:has(.contact-detail-page),
main:has(.venue-detail-page),
main:has(#dashboard-page) {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 24px 40px 80px;
}

/* =========================================================
   Mobile header (hidden on desktop)
   ========================================================= */

.mobile-header {
  display: none;
}

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  max-height: calc(100vh - 58px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 14px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: #fff;
  background: rgba(233, 69, 96, 0.2);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
}

/* =========================================================
   Page header
   ========================================================= */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -0.5px;
  font-variant: all-small-caps;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-header h1 svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.back-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--red);
}

.sort-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.sort-link:hover {
  color: var(--text-secondary);
}
.sort-active {
  color: var(--text-secondary);
  font-weight: 600;
}
.sort-arrow {
  font-size: 0.65rem;
  vertical-align: middle;
  margin-left: 2px;
}

/* Row action icon buttons */
.row-actions {
  width: 56px;
  text-align: right;
  white-space: nowrap;
  padding-right: 8px !important;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: var(--text-faint);
  transition: background 0.15s, color 0.15s;
  padding: 0;
  vertical-align: middle;
}
.icon-btn:hover {
  background: var(--icon-btn-hover-bg);
  color: var(--icon-btn-hover-color);
}
.icon-btn-del:hover {
  background: rgba(233, 69, 96, 0.12);
  color: var(--red);
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
  margin-bottom: 20px;
  overflow: visible;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card h2 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================================
   Detail grid (key/value pairs)
   ========================================================= */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.detail-grid > div {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
  font-weight: 600;
}

/* Social media links on venue detail */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--social-link-border);
  color: var(--social-link-color);
  text-decoration: none;
  background: var(--social-link-bg);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.social-link:hover        { background: var(--bg-subtle); border-color: var(--border-strong); color: var(--text-primary); }
.social-link-fb           { border-color: transparent; background: #1877f215; color: #1877f2; }
.social-link-fb:hover     { background: #1877f2; color: #fff; border-color: #1877f2; }
.social-link-ig           { border-color: transparent; background: #e1306c15; color: #e1306c; }
.social-link-ig:hover     { background: #e1306c; color: #fff; border-color: #e1306c; }
.social-link-yt           { border-color: transparent; background: #ff000012; color: #cc0000; }
.social-link-yt:hover     { background: #ff0000; color: #fff; border-color: #ff0000; }

/* =========================================================
   Data table
   ========================================================= */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: none;
}

.data-table {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: none;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 480px;
}

.data-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  text-align: left;
  padding: 14px 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--border);
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--table-row-sep);
  font-size: 0.95rem;
  vertical-align: middle;
  color: var(--table-td-color);
}

.data-table tbody td:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.data-table tbody td:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.data-table tbody tr {
  transition: background 0.1s;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: var(--table-hover);
}

/* Row indicators (color bars) */
.data-table .row-indicator {
  display: inline-block;
  width: 4px;
  height: 24px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 8px;
}
.row-indicator-bevestigd { background: #27ae60; }
.row-indicator-optie { background: #e67e22; }
.row-indicator-geannuleerd { background: #e94560; }
.row-indicator-afgerond { background: #aaa; }
.data-table tr.row-cancelled { opacity: 0.5; }
.data-table .bedrag { font-variant-numeric: tabular-nums; }

.data-table a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.data-table a:hover {
  color: var(--red-dark);
}

.data-table th a.sort-link {
  color: var(--table-th-color);
  font-weight: 600;
}
.data-table th a.sort-link:hover {
  color: var(--text-secondary);
}
.data-table th a.sort-active {
  color: var(--text-secondary);
}

/* =========================================================
   Summary / Financial table
   ========================================================= */

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--summary-border);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.summary-table td.amt {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.summary-table .subtotal-row td {
  border-top: 1px solid var(--summary-subtotal-border);
  border-bottom: 1px solid var(--summary-subtotal-border);
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--summary-subtotal-bg);
  color: var(--text-primary);
}

.summary-table .total-row td {
  border-top: 2px solid var(--red);
  border-bottom: none;
  padding-top: 12px;
  font-size: 1.05rem;
  color: var(--heading-color);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--bg-content);
  color: var(--btn-color);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-height: 38px;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-border);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #d63a55);
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-variant: all-small-caps;
  letter-spacing: 0.04em;
  padding: 0 16px;
  height: 34px !important;
  min-height: 0 !important;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-dark), #b52e45);
  color: #fff;
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
  transform: translateY(-1px);
}

.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: #155d99;
  border-color: #155d99;
  color: #fff;
}

.btn-danger {
  background: transparent;
  border-color: rgba(233, 69, 96, 0.35);
  color: var(--red-dark);
}

.btn-danger:hover {
  background: rgba(233, 69, 96, 0.08);
  border-color: var(--red);
  color: var(--red);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.78rem;
  border-radius: 6px;
  min-height: 28px;
}

/* =========================================================
   Forms
   ========================================================= */

label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--input-bg);
  color: var(--input-color);
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(28, 165, 210, 0.08);
}

select option {
  background: var(--input-bg);
  color: var(--input-color);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

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

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--form-actions-border);
}

/* Inline form (add lineup / link contact) */
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--inline-form-border);
  margin-top: 14px;
}

.inline-form select,
.inline-form input[type="text"],
.inline-form input[type="number"] {
  flex: 1;
  min-width: 100px;
  margin-top: 0;
}

.inline-form label {
  margin-bottom: 0;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Search input */
.search-input {
  display: block;
  max-width: 360px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 16px;
  background: var(--input-bg);
  color: var(--input-color);
  width: 100%;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}

.search-input::placeholder {
  color: var(--search-placeholder);
}

/* =========================================================
   Modal
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}

.modal-content {
  background: var(--modal-bg);
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  min-width: 340px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
}

.modal-content h2 {
  font-size: 1.1rem;
  color: var(--modal-heading);
  margin-bottom: 24px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.2px;
}

/* Modal structure: sticky header + scrollable body + sticky footer */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--modal-header-bg);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-header .modal-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover {
  color: var(--red);
  background: rgba(233, 69, 96, 0.08);
}

.modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 24px 28px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  background: var(--modal-header-bg);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* Form section helpers */
.form-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.form-section-divider {
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* Form inside modal: Safari-compatible alternative to display:contents */
.modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* For older modals without .modal-header/.modal-footer structure */
.modal-content:not(:has(.modal-header)) {
  padding: 32px;
  overflow-y: auto;
  display: block;
}

/* =========================================================
   Form grid (used in modals)
   ========================================================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.35px;
  margin-bottom: 0;
}

.form-control {
  display: block;
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--input-bg);
  color: var(--input-color);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-top: 0;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}

.form-control[type="file"] {
  padding: 6px 10px;
  font-size: 0.83rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 72px;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-addon {
  display: flex;
  align-items: center;
  padding: 0 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--input-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.input-group .form-control {
  border-radius: 0 8px 8px 0;
}

/* Section dividers inside form-grid */
.form-section {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-faint);
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

/* Eigen band toggle row */
.eigen-band-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  cursor: pointer;
}

.eigen-band-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.eigen-band-row .eigen-band-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.eigen-band-row .eigen-band-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.bk-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px) {
  .bk-layout {
    grid-template-columns: 1fr;
  }
}

.bk-main {
  min-width: 0;
}

/* =========================================================
   Musician header (photo + detail)
   ========================================================= */

.musician-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.musician-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.musician-photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: var(--thumb-placeholder);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-faint);
  flex-shrink: 0;
}

/* =========================================================
   Musician profile card (compact detail header)
   ========================================================= */
.mc-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  overflow: visible;
  transition: box-shadow 0.15s, transform 0.15s;
}

.mc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.mc-photo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.mc-photo-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--thumb-placeholder);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-faint);
  flex-shrink: 0;
}
/* De bk-main flex en min-width is gezet hierboven. We laten marges clean */
.mc-body {
  flex: 1;
  min-width: 0;
}
.mc-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.mc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.mc-meta a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mc-meta a:hover { color: var(--red); }
.mc-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mc-actions {
  display: flex;
  flex-direction: row;
  gap: 4px;
  flex-shrink: 0;
  align-items: flex-start;
}

/* =========================================================
   Detail page tabs
   ========================================================= */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: nowrap;
}
.tab-btn {
  background: none;
  border: none;
  padding: 11px 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  white-space: nowrap;
  flex: 1;
}
.tab-btn:hover { color: var(--text-primary); background: var(--bg-subtle); border-radius: 8px 8px 0 0; }
.tab-btn.tab-active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
}
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 20px;
  transition: background 0.15s, color 0.15s;
}
.tab-active .tab-badge {
  background: var(--red);
  color: #fff;
}
.tab-panel.tab-hidden { display: none; }

.thumb {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.thumb-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: var(--thumb-placeholder);
  border: 1px solid var(--border);
}

/* =========================================================
   Tags / badges
   ========================================================= */

.tag {
  display: inline-block;
  background: rgba(233, 69, 96, 0.1);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 4px;
  border: 1px solid rgba(233, 69, 96, 0.2);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-guest {
  background: rgba(233, 69, 96, 0.1);
  color: var(--red);
  border: 1px solid rgba(233, 69, 96, 0.2);
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
}
.status-pill-bevestigd { color: #27ae60; background: rgba(39, 174, 96, 0.08); }
.status-pill-optie { color: #e67e22; background: rgba(230, 126, 34, 0.08); }
.status-pill-geannuleerd { color: #e94560; background: rgba(233, 69, 96, 0.08); }
.status-pill-afgerond { color: #888; background: rgba(136, 136, 136, 0.08); }

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  background: var(--tag-list-bg);
  border: 1px solid var(--tag-list-border);
  border-radius: 8px;
  padding: 6px 12px;
}

.tag-list a {
  color: var(--tag-list-link);
  text-decoration: none;
  font-weight: 600;
}

.tag-list a:hover {
  color: var(--red);
}

/* =========================================================
   Status badges
   ========================================================= */

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  vertical-align: middle;
  flex-shrink: 0;
}

.status-bevestigd   { background: #27ae60; }
.status-definitief  { background: #27ae60; }
.status-optie       { background: #e67e22; }
.status-geannuleerd { background: #e94560; }
.status-afgerond    { background: rgba(100, 100, 100, 0.12); color: #666666; border: 1px solid rgba(100, 100, 100, 0.2); }

/* Status picker — custom dropdown in booking overview */
.status-picker { position: relative; display: inline-block; }
.status-picker .status-badge { cursor: pointer; border: none; }
.status-picker-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  overflow: hidden;
  min-width: 148px;
}
.status-picker.open .status-picker-menu { display: block; }
.status-picker-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: inherit;
  text-align: left;
  white-space: nowrap;
}
.status-picker-option:hover   { background: var(--bg-subtle); }
.status-picker-option.active  { background: var(--bg-subtle); font-weight: 700; }
.status-picker-option .sp-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.status-picker-option.status-bevestigd   .sp-icon { background: #27ae60; }
.status-picker-option.status-optie       .sp-icon { background: #e67e22; }
.status-picker-option.status-geannuleerd .sp-icon { background: #e94560; }
.status-picker-option.status-afgerond    .sp-icon { background: rgba(100,100,100,0.55); }

/* Cancelled rows */
.row-cancelled td { color: var(--text-faint); text-decoration: line-through; }
.row-cancelled td a { color: var(--text-faint); text-decoration: line-through; }
.row-cancelled .status-badge  { text-decoration: none; }
.row-cancelled .status-picker { text-decoration: none; opacity: 0.75; }

/* =========================================================
   Bookings: jaar-tabs + maandgroepen
   ========================================================= */

.year-tab {
  display: inline-block;
  padding: 6px 16px 5px;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant: all-small-caps;
  letter-spacing: 0.03em;
  color: var(--year-tab-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  background: var(--year-tab-bg);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.year-tab:hover {
  color: var(--year-tab-hover-color);
  background: var(--year-tab-hover-bg);
}
.year-tab-active {
  color: var(--year-tab-active-color);
  border-bottom-color: var(--blue);
  background: var(--year-tab-active-bg);
}

.year-stats {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.year-stats-sep {
  color: var(--text-faint);
}

.month-group {
  margin-bottom: 28px;
}

/* =========================================================
   Bookings: jaaroverzicht-kaarten
   ========================================================= */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview-card {
  background: var(--overview-card-bg);
  border-radius: 10px;
  padding: 20px 22px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border: 1px solid var(--overview-card-border);
}

.overview-card-year {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.overview-year-link {
  color: var(--overview-year-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.overview-year-link:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.overview-stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.overview-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.overview-stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.overview-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.overview-bands {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.overview-band-pill {
  background: var(--overview-pill-bg);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: var(--overview-pill-color);
}
.overview-band-count {
  color: var(--text-faint);
  font-size: 0.72rem;
}

/* =========================================================
   Bookings: maandgroepen
   ========================================================= */

.month-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 6px;
  padding-left: 2px;
}

/* =========================================================
   Status / feedback
   ========================================================= */

.empty-state {
  color: var(--text-muted);
  font-style: italic;
  padding: 16px 0;
  font-size: 0.88rem;
}

.success-msg {
  color: #1a8a55;
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.error-msg {
  color: var(--red);
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.hint {
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-top: 5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.pdf-result {
  margin-top: 8px;
}

/* Flash / saved message */
.flash-msg {
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 16px;
  transition: opacity 0.6s ease;
}

.flash-success {
  background: var(--flash-success-bg);
  color: var(--flash-success-color);
  border: 1px solid var(--flash-success-border);
}

/* =========================================================
   Settings logo preview
   ========================================================= */

.settings-logo-preview {
  height: 44px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  padding: 6px 14px;
  background: var(--settings-logo-bg);
  border: 1px solid var(--border);
}

/* =========================================================
   Dashboard
   ========================================================= */

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s;
}

.stat-card:hover {
  border-color: var(--border-strong);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.dash-quick {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.quick-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  flex: 1;
  min-width: 120px;
}

.quick-card:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(233, 69, 96, 0.04);
}

.quick-icon {
  font-size: 1.2rem;
}

/* Accent stat card (highlighted) */
.stat-card-accent {
  border-color: var(--red);
  background: rgba(233, 69, 96, 0.04);
}

.stat-card-accent .stat-num {
  color: var(--red);
}

/* =========================================================
   Calendar
   ========================================================= */

/* Kalender jaar-tabs balk */
.cal-year-tabs {
  display: flex;
  gap: 0;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--cal-tab-border);
}

/* Kalender maand-dropdown in nav */
.cal-maand-select {
  display: inline-block;
  width: auto;
  margin-top: 0;
  padding: 7px 32px 7px 12px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading-color);
  background: var(--input-bg);
  cursor: pointer;
  min-width: 140px;
  appearance: auto;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cal-nav-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading-color);
  min-width: 180px;
  text-align: center;
}

.cal-grid-wrap {
  background: var(--cal-grid-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-day-header {
  background: var(--cal-header-bg);
  text-align: center;
  padding: 10px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.cal-day-header.cal-weekend {
  color: var(--red-dark);
}

.cal-cell {
  min-height: 90px;
  padding: 6px;
  border-right: 1px solid var(--cal-cell-border);
  border-bottom: 1px solid var(--cal-cell-border);
  vertical-align: top;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell-empty {
  background: var(--cal-cell-empty);
}

.cal-today {
  background: rgba(233, 69, 96, 0.04);
}

.cal-today .cal-day-num {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day-num {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cal-day-num);
  line-height: 1;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.cal-day-num.cal-weekend {
  color: var(--red-dark);
}

.cal-event {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 6px;
  border-radius: 4px;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.cal-event-time {
  font-weight: 700;
  opacity: 0.8;
}

.cal-event-bevestigd   { background: rgba(34, 170, 100, 0.15); color: #1a7045; border-left: 3px solid #22aa64; }
.cal-event-optie       { background: rgba(220, 150, 0, 0.15);  color: #8a5f00; border-left: 3px solid #dc9600; }
.cal-event-geannuleerd { background: rgba(180, 180, 190, 0.3); color: #888;    border-left: 3px solid #aaa; text-decoration: line-through; }
.cal-event-afgerond    { background: rgba(100, 100, 100, 0.15); color: #666666; border-left: 3px solid #888888; }
.cal-event-social      { background: rgba(130, 80, 220, 0.13); color: #6a3db5; border-left: 3px solid #8250dc; }
.cal-event-social-pub  { background: rgba(130, 80, 220, 0.08); color: #9980c0; border-left: 3px solid #b0a0cc; }

[data-theme="dark"] .cal-event-bevestigd   { background: rgba(34,170,100,0.18);  color: #4ec98a; border-left-color: #4ec98a; }
[data-theme="dark"] .cal-event-optie       { background: rgba(220,150,0,0.18);   color: #e0b030; border-left-color: #dc9600; }
[data-theme="dark"] .cal-event-geannuleerd { background: rgba(120,120,120,0.2);  color: #888888; border-left-color: #666666; text-decoration: line-through; }
[data-theme="dark"] .cal-event-afgerond    { background: rgba(100,100,100,0.18); color: #a0a0a0; border-left-color: #808080; }
[data-theme="dark"] .cal-event-social      { background: rgba(130,80,220,0.2);   color: #b490f0; border-left-color: #a070e0; }
[data-theme="dark"] .cal-event-social-pub  { background: rgba(130,80,220,0.1);   color: #9080b0; border-left-color: #7868a0; }

[data-theme="dark"] .status-afgerond { background: rgba(100,100,100,0.15); color: #a0a0a0; border-color: rgba(100,100,100,0.3); }

.cal-event:hover {
  filter: brightness(0.9);
}

.cal-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 24px;
}

.cal-legend .cal-event {
  display: inline-block;
  cursor: default;
  pointer-events: none;
}

/* =========================================================
   Custom tooltips
   ========================================================= */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #fff;
  font-size: .71rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 9999;
  line-height: 1.3;
  letter-spacing: .01em;
  box-shadow: var(--shadow-md);
}
[data-tip]:hover::after { opacity: 1; }
[data-tip-pos="bottom"]::after { bottom: auto; top: calc(100% + 7px); }
[data-tip-pos="left"]::after { bottom: auto; top: 50%; left: auto; right: calc(100% + 7px); transform: translateY(-50%); }
[data-tip-pos="right"]::after { bottom: auto; top: 50%; left: calc(100% + 7px); transform: translateY(-50%); }

/* =========================================================
   Responsive -- tablet (max 900px)
   ========================================================= */

@media (max-width: 900px) {
  .sidebar {
    width: 180px;
  }
  .bk-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .page-wrapper {
    margin-left: 180px;
  }
  main {
    padding: 24px 20px 60px;
  }
}

/* =========================================================
   Responsive -- mobile (max 680px)
   ========================================================= */

@media (max-width: 680px) {
  body {
    display: block;
  }

  /* Hide sidebar on mobile */
  .sidebar {
    display: none;
  }

  /* Show mobile header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--sidebar-border);
    padding: 0 16px;
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    gap: 8px;
  }

  .mobile-logo-img {
    height: 34px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
  }

  .nav-hamburger {
    display: flex;
  }

  .page-wrapper {
    margin-left: 0;
  }

  main {
    padding: 20px 14px 56px;
  }

  /* Page header */
  .page-header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 1.35rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  /* Cards */
  .card {
    padding: 16px;
    border-radius: 10px;
  }

  /* Detail grid: single column */
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Table horizontal scroll */
  .table-wrap {
    margin: 0 -14px;
    padding: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .data-table {
    min-width: 560px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

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

  .modal-content {
    min-width: unset;
    border-radius: 12px;
  }

  .modal-content:not(:has(.modal-header)) {
    padding: 22px 18px;
  }

  .modal-header {
    padding: 14px 18px;
  }

  .modal-body {
    padding: 18px 18px;
  }

  .modal-footer {
    padding: 14px 18px;
  }

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

  .form-group.full-width {
    grid-column: 1;
  }

  /* Inline forms */
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-form select,
  .inline-form input[type="text"],
  .inline-form input[type="number"] {
    width: 100%;
    flex: none;
  }

  .inline-form .btn {
    width: 100%;
    justify-content: center;
  }

  /* Dashboard stats: 2 columns */
  .dash-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px 16px;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  /* Quick links: 2 columns */
  .dash-quick {
    gap: 8px;
  }

  .quick-card {
    padding: 12px 14px;
    min-width: calc(50% - 4px);
  }

  /* Touch-friendly buttons */
  .btn {
    min-height: 42px;
    padding: 10px 18px;
  }

  .btn-sm {
    min-height: 34px;
    padding: 6px 12px;
  }

  /* Musician header: stack on mobile */
  .musician-header {
    flex-direction: column;
    gap: 16px;
  }
  .mc-card {
    flex-wrap: wrap;
  }
  .mc-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }

  /* Calendar mobile */
  .cal-cell {
    min-height: 56px;
    padding: 3px;
  }

  .cal-day-num {
    font-size: 0.72rem;
  }

  .cal-event {
    font-size: 0.65rem;
    padding: 1px 3px;
  }

  .cal-nav-title {
    min-width: 130px;
    font-size: 0.95rem;
  }
}

/* =========================================================
   Top Bar Layout  (body.topbar-layout)
   Activated via localStorage / layout toggle button.
   The sidebar is hidden; a fixed horizontal topbar takes over.
   ========================================================= */

/* By default the topbar is hidden; only shown in topbar-layout mode */
.topbar {
  display: none;
}

/* ----- Activate topbar layout ----- */
body.topbar-layout .sidebar         { display: none !important; }
body.topbar-layout .mobile-header   { display: none !important; }
body.topbar-layout .mobile-menu     { display: none !important; }

body.topbar-layout .topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
  box-shadow: 0 2px 14px rgba(0,0,0,0.38);
  z-index: 100;
  padding: 0 16px;
  gap: 0;
}

body.topbar-layout .page-wrapper {
  margin-left: 0 !important;
  padding-top: 72px;
}

/* ----- Logo (grid column 2, auto width, centered by grid) ----- */
.topbar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 12px;
}
.topbar-logo-img {
  height: 62px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.topbar-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ----- Left nav (col 1) + right nav+utils (col 3) ----- */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: visible;
}
.topbar-nav-left  { justify-content: flex-end; }
.topbar-nav-right { justify-content: flex-start; flex: 1; }

/* right column wrapper: nav-right + utils side by side, fills col 3 */
.topbar-right-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  overflow: visible;
}

/* settings/theme/layout group: pushed to far right edge */
.topbar-utils-right {
  margin-left: auto;
  padding-right: 4px;
  flex-shrink: 0;
}

.topbar-nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 6px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  font-variant: all-small-caps;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.topbar-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.82;
}
.topbar-nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.92);
}
.topbar-nav-item.active {
  background: rgba(255,255,255,0.19);
  color: #ffffff;
}
.topbar-nav-item.active svg {
  opacity: 1;
}

/* ----- Utilities (right) ----- */
.topbar-utils {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 12px;
}

.topbar-util-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: rgba(255,255,255,0.70);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.topbar-util-btn svg {
  width: 19px;
  height: 19px;
}
.topbar-util-btn:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.90);
}
.topbar-util-btn.active {
  color: #f08090;
  background: rgba(233,69,96,0.20);
}

/* Filter dropdowns and search inputs: dark mode overrides for inline-styled elements */
[data-theme="dark"] select {
  background: var(--input-bg) !important;
  color: var(--input-color) !important;
  border-color: var(--input-border) !important;
}
[data-theme="dark"] select option {
  background: var(--bg-subtle);
  color: var(--input-color);
}

/* Contact list: email + phone links lighter in dark mode */
[data-theme="dark"] .contact-email-link,
[data-theme="dark"] .contact-phone-link {
  color: #909090 !important;
}

/* Nieuw contact button: gold in dark mode, default red (btn-primary) in light */
[data-theme="dark"] .btn-contact-new {
  background: #C8A539 !important;
  border-color: #C8A539 !important;
}
[data-theme="dark"] .btn-contact-new:hover {
  background: #a8882e !important;
  border-color: #a8882e !important;
}

/* Budget amount in booking list */
.booking-budget-amt {
  color: #444;
}
[data-theme="dark"] .booking-budget-amt {
  color: #4ec98a;
}

/* Venue list: category pill darker grey in dark mode */
[data-theme="dark"] .venue-cat-pill {
  background: #6e6e6e !important;
  color: #f0f0f0 !important;
}

/* Venue list: city and contact text lighter in dark mode */
[data-theme="dark"] .venue-city-cell,
[data-theme="dark"] .venue-contact-link {
  color: #909090 !important;
}

/* ----- Layout toggle button in sidebar ----- */
.layout-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  color: rgba(255,255,255,0.55);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant: all-small-caps;
  letter-spacing: 0.03em;
  width: 100%;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.layout-toggle-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.92);
}
body.sidebar-collapsed .layout-toggle-btn span {
  display: none;
}
body.sidebar-collapsed .layout-toggle-btn {
  justify-content: center;
  padding: 6px 0;
}

/* ── Topbar ── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  height: 72px;
  background: rgba(222, 222, 226, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
[data-theme="dark"] .topbar {
  background: rgba(28, 28, 30, 0.88);
  border-bottom-color: rgba(255,255,255,0.06);
}
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}
.topbar-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.topbar-breadcrumb a:hover {
  color: var(--text-primary);
}
.topbar-breadcrumb .sep {
  color: var(--card-border);
}
.topbar-breadcrumb .current {
  color: var(--text-primary);
  font-weight: 600;
}
.topbar-search-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  z-index: 1;
}
.topbar-search-form {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}
.topbar-search {
  width: 100%;
  background: var(--bg-subtle);
  box-shadow: none;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 52px 11px 36px;
  color: var(--input-color);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.topbar-search::placeholder {
  color: var(--text-muted);
}
.topbar-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(28, 165, 210, 0.1);
  background: var(--bg-content);
}
.topbar-search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.62rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1.6;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 2;
}
.topbar-new-btn {
  background: linear-gradient(135deg, var(--red), #d63a55);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.topbar-new-btn:hover {
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.35);
  transform: translateY(-1px);
}
.topbar-icon-btn {
  background: none;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.12s, color 0.12s;
  text-decoration: none;
}
.topbar-icon-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.topbar-notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--card-bg);
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1000;
}
.notif-dropdown.notif-open { display: block; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.1s;
}
.notif-item:hover { background: var(--bg-subtle); }

/* ----- Topbar on mobile: fall back to mobile-header ----- */
@media (max-width: 680px) {
  body.topbar-layout .topbar      { display: none !important; }
  body.topbar-layout .mobile-header { display: flex !important; }
  body.topbar-layout .mobile-menu   { display: block; }
  body.topbar-layout .page-wrapper  { padding-top: 0; }
}

/* =====================================================================
   Demo mode
   ===================================================================== */
.demo-mode .bedrag {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}
.demo-mode input[name*="gage"],
.demo-mode input[name*="prijs"],
.demo-mode input[name*="fee"],
.demo-mode input[name*="amount"],
.demo-mode input[name*="tarief"],
.demo-mode input[name*="omzet"],
.demo-mode input[name*="bedrag"] {
  filter: blur(7px);
  user-select: none;
}

/* =====================================================================
   Collapsible nav groups
   ===================================================================== */
.nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 8px 12px;
}
.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 14px 6px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.nav-group-header:hover {
  color: rgba(255,255,255,0.55);
}
.nav-group-header[disabled] {
  cursor: pointer;
  opacity: 1;
}
.nav-group-chevron::before {
  content: '\25BC'; /* ▼ */
}
.nav-group-chevron {
  font-size: 0.5rem;
  opacity: 0.5;
}
.nav-group.collapsed .nav-group-chevron::before {
  content: '\25B6'; /* ▶ */
}
.nav-group.collapsed .nav-group-items {
  display: none;
}
.nav-group-items .nav-item {
  padding-left: 24px;
}

/* =====================================================================
   Sidebar bottom
   ===================================================================== */
.sidebar-bottom .nav-item span {
  font-size: 0.78rem;
}

/* =====================================================================
   Sidebar collapsed overrides
   ===================================================================== */
body.sidebar-collapsed .nav-group-header {
  display: none;
}
body.sidebar-collapsed .nav-group.collapsed .nav-group-items {
  display: block;
}
body.sidebar-collapsed .nav-divider {
  margin: 2px 0;
}
body.sidebar-collapsed .sidebar-icon-bar {
  display: none;
}

/* =====================================================================
   Mobile nav section label
   ===================================================================== */
.mobile-nav-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 16px 4px;
  opacity: 0.6;
  display: block;
}

/* =====================================================================
   Sidebar icon bar
   ===================================================================== */
.sidebar-icon-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px 4px;
}
.sib-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  border-radius: 5px;
  padding: 5px 8px;
  transition: background 0.15s, color 0.15s;
}
.sib-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}
#demo-toggle.demo-active {
  color: var(--red);
}

/* =====================================================================
   Sidebar scrollbar
   ===================================================================== */
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   Dashboard
   — migrated from pages/dashboard.php inline <style>
   ========================================================= */

/* ── Layout ── */
#dashboard-page { max-width: none; }

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-greeting h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -.03em;
}

.dash-date {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dash-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dqa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.dqa-btn:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.08);
  transform: translateY(-1px);
}

.dqa-primary {
  background: linear-gradient(135deg, var(--red), #d63a55);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.2);
}

.dqa-primary:hover {
  background: linear-gradient(135deg, var(--red-dark), #b52e45);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

/* ── KPI Cards ── */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.kpi-card:nth-child(1)::before { background: linear-gradient(180deg, #1ca5d2, #1590b8); }
.kpi-card:nth-child(2)::before { background: linear-gradient(180deg, #8e44e6, #7233c0); }
.kpi-card:nth-child(3)::before { background: linear-gradient(180deg, #dc9600, #c08200); }
.kpi-card:nth-child(4)::before { background: linear-gradient(180deg, #27ae60, #1e9050); }

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

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-blue { background: rgba(28, 165, 210, .1); color: #1ca5d2; }
.kpi-icon-purple { background: rgba(142, 68, 230, .1); color: #8e44e6; }
.kpi-icon-amber { background: rgba(220, 150, 0, .1); color: #dc9600; }
.kpi-icon-green { background: rgba(39, 174, 96, .1); color: #27ae60; }

.kpi-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kpi-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.7px;
}

.kpi-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-pct {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: .65rem;
  font-weight: 700;
  margin-left: 4px;
}

.kpi-pct-up { background: rgba(39, 174, 96, .12); color: #1a8a55; }
.kpi-pct-down { background: rgba(231, 76, 60, .12); color: #c0392b; }
.kpi-card-accent { border-color: rgba(39, 174, 96, .3); }

/* ── Main Grid ── */
.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}

.dash-col-main,
.dash-col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Dash Card (shared) ── */
.dash-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  overflow: hidden;
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-card:hover {
  box-shadow: var(--shadow-lg);
}

.dc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}

.dc-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
  white-space: nowrap;
}

.dc-title svg { color: var(--text-muted); flex-shrink: 0; }

.dc-title-sm {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}

.dc-title-sm svg { display: none; }

.dc-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}

.dc-link:hover { color: var(--red-dark); }

.dc-subtitle {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.dc-empty {
  color: var(--text-muted);
  font-size: .85rem;
  margin: 0;
}

.dash-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dash-card-half { padding: 16px; }

/* ── Gig List ── */
.gig-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gig-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gig-row:hover { background: var(--bg-subtle); transform: translateX(2px); }
.gig-today { background: rgba(233, 69, 96, .04); }

.gig-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 66px;
  border-radius: 13px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: all .2s;
}
.gig-row:hover .gig-date-block {
  border-color: var(--red);
  background: rgba(233, 69, 96, 0.04);
}

.gig-date-today { background: var(--red); border-color: var(--red); }
.gig-date-today .gig-date-day,
.gig-date-today .gig-date-num,
.gig-date-today .gig-date-month { color: #fff !important; }

.gig-date-day {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1;
}

.gig-date-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.gig-date-month {
  font-size: .66rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1.3;
}

.gig-info { flex: 1; min-width: 0; }

.gig-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gig-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant: all-small-caps;
  letter-spacing: .03em;
}

.gig-badge {
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gig-badge-today { background: var(--red); color: #fff; }
.gig-badge-tomorrow { background: rgba(28, 165, 210, .12); color: #1ca5d2; }
.gig-badge-option { background: rgba(220, 150, 0, .12); color: #a07000; }
.gig-badge-extern { background: rgba(28, 165, 210, .1); color: #1ca5d2; font-size: .52rem; padding: 1px 5px; }

.gig-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.gig-venue { font-weight: 500; }
.gig-city { color: var(--text-faint); }
.gig-band { color: var(--text-faint); }

.gig-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.gig-time {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.gig-fee {
  font-size: .85rem;
  font-weight: 700;
  color: #27ae60;
  font-variant-numeric: tabular-nums;
}

/* ── Revenue Chart ── */
.rev-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding-top: 8px;
}

.rev-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
  position: relative;
}

.rev-bar {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--red), #d63a55);
  opacity: .65;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 2px;
}

.rev-bar-current { opacity: 1; background: linear-gradient(180deg, var(--red), #c02540); }
.rev-bar-future { opacity: .2; }
.rev-bar-wrap:hover .rev-bar { opacity: 1; transform: scaleY(1.05); transform-origin: bottom; }

.rev-bar-label {
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ── Rank List ── */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}

.rank-row:last-child { border-bottom: none; }

.rank-num {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-faint);
  width: 16px;
  text-align: right;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rank-name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-sub {
  font-size: .75rem;
  color: var(--text-faint);
}

.rank-stat {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ── Year Table ── */
.year-table { font-size: .88rem; }

.yt-header,
.yt-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 4px;
  padding: 6px 0;
  align-items: center;
}

.yt-header {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2px;
}

.yt-row {
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: background .1s;
}

.yt-row:last-child { border-bottom: none; }
.yt-row:hover { background: var(--bg-subtle); }
.yt-row-current { font-weight: 700; }

.yt-col-yr { font-weight: 600; color: var(--text-primary); }
.yt-col-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.yt-avg { color: var(--text-muted); }
.yt-up { color: #27ae60; font-weight: 600; }
.yt-down { color: #e74c3c; font-weight: 600; }

.yt-current-tag {
  font-size: .55rem;
  background: var(--red);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: 1px;
  margin-left: 4px;
}

/* ── Attention Card ── */
.dash-card-attention { border-color: rgba(231, 76, 60, .2); }

.attn-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.attn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all .15s;
  background: rgba(220, 150, 0, .04);
  border-left: 3px solid rgba(220, 150, 0, .3);
}

.attn-item:hover { background: rgba(220, 150, 0, .08); }

.attn-urgent {
  background: rgba(231, 76, 60, .05);
  border-left-color: rgba(231, 76, 60, .5);
}
.attn-urgent:hover { background: rgba(231, 76, 60, .09); }

.attn-option {
  background: rgba(220, 150, 0, .04);
  border-left-color: rgba(220, 150, 0, .3);
}

.attn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(220, 150, 0, .12);
  color: #a07000;
}

.attn-icon-doc { background: rgba(28, 165, 210, .12); color: #1ca5d2; }
.attn-urgent .attn-icon { background: rgba(231, 76, 60, .12); color: #e74c3c; }
.attn-option .attn-icon { background: rgba(220, 150, 0, .12); color: #c09000; }

.attn-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.attn-title {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attn-sub {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.attn-section-label {
  padding: 9px 14px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.attn-section-sep {
  border-top: 1px solid var(--card-border);
  margin-top: 4px;
  padding-top: 7px;
}

.attn-section-empty {
  padding: 8px 14px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Reminder List ── */
.reminder-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reminder-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}

.reminder-row:hover { background: var(--bg-subtle); }
.reminder-overdue { background: rgba(231, 76, 60, .04); }

.reminder-date {
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 55px;
  color: var(--text-muted);
  padding-top: 1px;
}

.reminder-overdue .reminder-date { color: #e74c3c; }

.reminder-info { flex: 1; min-width: 0; }

.reminder-venue {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reminder-contact {
  font-size: .72rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.reminder-notes {
  font-size: .74rem;
  color: var(--text-secondary);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* ── Social Media List ── */
.social-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}

.social-row:hover { background: var(--bg-subtle); }

.sp-status {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  flex-shrink: 0;
}

.sp-draft { background: rgba(136, 136, 136, .12); color: #888; }
.sp-scheduled { background: rgba(220, 150, 0, .12); color: #a07000; }
.sp-failed { background: rgba(231, 76, 60, .12); color: #e74c3c; }

.sp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sp-target {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sp-caption {
  font-size: .76rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-time {
  font-size: .68rem;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ── Activity List ── */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.act-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}

.act-row:hover { background: var(--bg-subtle); }

.act-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--text-muted);
  flex-shrink: 0;
}

.act-info { flex: 1; min-width: 0; }

.act-venue {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.act-contact {
  font-size: .7rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.act-notes {
  font-size: .72rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.act-date {
  font-size: .68rem;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Inventory Grid ── */
.inv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.inv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}

.inv-item:hover { background: var(--bg-subtle); }

.inv-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.inv-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Dashboard dark mode overrides ── */
[data-theme="dark"] .gig-fee { color: #4ec98a; }
[data-theme="dark"] .kpi-pct-up { background: rgba(78, 201, 138, .15); color: #4ec98a; }
[data-theme="dark"] .kpi-pct-down { background: rgba(231, 76, 60, .15); color: #f08080; }
[data-theme="dark"] .kpi-card-accent { border-color: rgba(78, 201, 138, .25); }
[data-theme="dark"] .yt-up { color: #4ec98a; }
[data-theme="dark"] .yt-down { color: #f08080; }
[data-theme="dark"] .dash-card-attention { border-color: rgba(231, 76, 60, .15); }
[data-theme="dark"] .gig-badge-today { background: var(--red); }
[data-theme="dark"] .gig-badge-tomorrow { background: rgba(28, 165, 210, .18); color: #5ac8e6; }
[data-theme="dark"] .gig-badge-option { background: rgba(220, 150, 0, .18); color: #e0b030; }
[data-theme="dark"] .attn-item { background: rgba(220, 150, 0, .06); border-left-color: rgba(220, 150, 0, .35); }
[data-theme="dark"] .attn-item:hover { background: rgba(220, 150, 0, .1); }
[data-theme="dark"] .attn-urgent { background: rgba(231, 76, 60, .07); border-left-color: rgba(231, 76, 60, .5); }
[data-theme="dark"] .attn-urgent:hover { background: rgba(231, 76, 60, .12); }
[data-theme="dark"] .attn-icon { background: rgba(220, 150, 0, .15); color: #e0b030; }
[data-theme="dark"] .attn-icon-doc { background: rgba(28, 165, 210, .15); color: #5ac8e6; }
[data-theme="dark"] .attn-urgent .attn-icon { background: rgba(231, 76, 60, .15); color: #f08080; }
[data-theme="dark"] .attn-option .attn-icon { background: rgba(220, 150, 0, .15); color: #e0b030; }
[data-theme="dark"] .sp-scheduled { background: rgba(220, 150, 0, .15); color: #e0b030; }
[data-theme="dark"] .sp-failed { background: rgba(231, 76, 60, .15); color: #f08080; }
[data-theme="dark"] .kpi-icon-blue { background: rgba(28, 165, 210, .15); }
[data-theme="dark"] .kpi-icon-purple { background: rgba(142, 68, 230, .15); }
[data-theme="dark"] .kpi-icon-amber { background: rgba(220, 150, 0, .15); }
[data-theme="dark"] .kpi-icon-green { background: rgba(39, 174, 96, .15); }
[data-theme="dark"] .reminder-overdue { background: rgba(231, 76, 60, .06); }
[data-theme="dark"] .gig-today { background: rgba(233, 69, 96, .06); }

/* ── Dashboard responsive ── */
@media (max-width: 1000px) {
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dash-quick-actions { width: 100%; }
  .dqa-btn { flex: 1; justify-content: center; }
  .inv-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Band Cards
   — migrated from pages/bands.php inline <style>
   ========================================================= */

#bulk-sync-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Band card grid — flexbox for Safari compatibility */
.band-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  width: 100%;
}

.bc-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: visible;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

.bc-thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-subtle, #f0f0f5);
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.bc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}

.bc-card:hover .bc-thumb img { transform: scale(1.03); }

.bc-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-faint, #aaa);
  letter-spacing: -.02em;
}

.bc-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bc-header {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.bc-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary, #222);
  text-decoration: none;
  font-variant: all-small-caps;
  letter-spacing: .01em;
}

.bc-name:hover { color: var(--blue); }

.bc-genre {
  font-size: .78rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bc-stats {
  font-size: .78rem;
  color: var(--text-muted, #888);
}

.bc-dot { margin: 0 2px; }

.bc-socials {
  display: flex;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
}

.bc-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: #888;
  opacity: .7;
  transition: opacity .15s;
}

.bc-social:hover { opacity: 1; }

.bc-actions {
  display: flex;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--card-border, #e0e0e8);
  margin-top: 4px;
}

.bc-sync-btn { margin-left: auto; }

/* Eigen band indicator + mini toggles op band cards */
.bc-toggles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.bc-eigen-star {
  margin-left: 6px;
  font-size: .85rem;
  color: var(--red);
  opacity: 1;
}

.bc-mini-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-faint, #aaa);
  letter-spacing: .02em;
  transition: color .15s;
}

.bc-mini-toggle:hover { color: var(--text-muted, #888); }

.bc-mt-track {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: #ccc;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}

.bc-mt-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}

.bc-mt-on .bc-mt-track { background: #27ae60; }
.bc-mt-on .bc-mt-track::after { transform: translateX(14px); }
.bc-mt-on { color: #27ae60; }

.bc-connected {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.bc-conn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.bc-conn-fb { background: #e7f0ff; color: #1877f2; }
.bc-conn-ig { background: #fce4ec; color: #e4405f; }

/* ── Band Detail ───────────────────────────────────────────── */

.bc-logo {
  width: auto;
  height: 100%;
  max-height: 80px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 3px;
  flex-shrink: 0;
}
.bc-logo-placeholder {
  width: 72px;
  align-self: center;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--thumb-placeholder);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-faint);
  flex-shrink: 0;
  letter-spacing: 1px;
}
.mc-name-input {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  margin: -2px -6px;
  font-family: inherit;
  width: 100%;
  max-width: 360px;
  transition: border-color 0.15s, background 0.15s;
}
.mc-name-input:hover { border-color: var(--border); }
.mc-name-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--card-bg);
}
.mc-toggles {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  justify-content: center;
  max-width: 360px;
}
.mc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  vertical-align: middle;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
}
.mc-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  transition: background 0.25s;
  flex-shrink: 0;
}
.mc-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ddd;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s;
}
.mc-toggle.mc-on .mc-toggle-track::after { transform: translateX(18px); }
.mc-toggle.mc-off .mc-toggle-track { background: #555; }
#pill-web.mc-on .mc-toggle-track { background: #27ae60; }
.bd-eigen-star {
  margin-left: 2px;
  font-size: 0.7rem;
  color: var(--red);
  vertical-align: middle;
}
.mc-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-variant: all-small-caps;
}

/* Instrument pills */
.instr-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.instr-pill { cursor: pointer; margin: 0; }
.instr-pill input { display: none; }
.instr-pill span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  cursor: pointer;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-muted);
  transition: all 0.15s;
  user-select: none;
}
.instr-pill input:checked + span {
  background: var(--blue, #3b82f6);
  color: #fff;
  border-color: var(--blue, #3b82f6);
}
.instr-pill span:hover { border-color: var(--blue, #3b82f6); }

/* Band overview dashboard */
.ov-cover-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}
.ov-cover-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.ov-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin-bottom: 20px;
}
.ov-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px 18px;
}
.ov-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 10px;
}
.ov-facts dt {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 1px;
}
.ov-facts dd {
  font-size: 0.88rem;
  color: var(--text-primary);
  margin: 0 0 10px;
  padding: 0;
}
.ov-facts dd:last-child { margin-bottom: 0; }
.ov-social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ov-social-icons a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.ov-social-icons a:hover { color: var(--red); }
.ov-gig {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.ov-gig:last-child { border-bottom: none; }
.ov-gig-date {
  width: 46px;
  min-height: 46px;
  border-radius: 4px;
  background: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px 0;
}
.ov-gig-date .d {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.ov-gig-date .m {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  line-height: 1;
}
.ov-gig-date .y {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  margin-top: 1px;
}
.ov-gig-info { flex: 1; min-width: 0; }
.ov-gig-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-gig-venue {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.ov-gig-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Band overview sub-tabs */
.ov-subtabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: -2px -16px 12px;
  padding: 0 16px;
}
.ov-subtab {
  background: none;
  border: none;
  padding: 6px 12px 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.ov-subtab:hover { color: var(--text-primary); }
.ov-subtab.ov-subtab-active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
}
.ov-subtab .ov-subtab-count {
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-left: 3px;
}
.ov-subtab.ov-subtab-active .ov-subtab-count { color: var(--red); }
.ov-subpanel { display: none; }
.ov-subpanel.ov-subpanel-active { display: block; }
.ov-gig-list { max-height: 320px; overflow-y: auto; }

/* Band detail form grids */
.bd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}
.bd-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bd-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.bd-span-2 { grid-column: 1 / -1; }
.section-save { margin-top: 12px; }

/* Social link rows */
.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.social-row:last-child { border-bottom: none; }
.social-row svg { flex-shrink: 0; }
.social-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 90px;
  flex-shrink: 0;
}
.social-row input { flex: 1; }

@media (max-width: 900px) {
  .ov-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bd-grid { grid-template-columns: 1fr; }
  .bd-span-2 { grid-column: auto; }
}

/* ── Musician Detail — Releases ───────────────────────────────── */

.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.rel-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.rel-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.rel-cover {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-subtle, #f0f0f5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rel-cover-ph {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-faint, #aaa);
  letter-spacing: -0.02em;
}
.rel-info { padding: 10px 12px 12px; }
.rel-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.25;
}
.rel-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.rel-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.rel-band-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}
.rel-band-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* Discografie groepering */
.disc-section { margin-bottom: 32px; }
.disc-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border);
}
.disc-section-title a { color: var(--text-primary); text-decoration: none; }
.disc-section-title a:hover { color: var(--blue); }
.disc-section-count { font-weight: 400; color: var(--text-muted); font-size: 0.9rem; }
.bc-card-ghost { opacity: 0.4; }

/* Discogs search modal */
.dg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.dg-overlay.dg-open { display: flex; }
.dg-modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.dg-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dg-header input { flex: 1; font-size: 0.9rem; }
.dg-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.dg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border, #e5e5e5);
  cursor: pointer;
  transition: background 0.1s;
}
.dg-item:hover { background: var(--bg-subtle); }
.dg-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.dg-item-info { flex: 1; min-width: 0; }
.dg-item-title { font-size: 0.85rem; font-weight: 600; }
.dg-item-sub { font-size: 0.75rem; color: var(--text-muted); }
.dg-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--card-border);
  text-align: right;
}
.dg-back {
  font-size: 0.8rem;
  color: var(--blue);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin-right: auto;
}
.dg-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Band social media sub-tabs */
.sm-subtabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 16px;
}
.sm-subtab {
  background: none;
  border: none;
  padding: 8px 16px 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  transition: color 0.15s;
}
.sm-subtab:hover { color: var(--text-primary); }
.sm-subtab.sm-subtab-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 600;
}
.sm-subpanel { display: none; }
.sm-subpanel.sm-subpanel-active { display: block; }

/* Band releases grid */
.brel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.brel-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.brel-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.brel-cover {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-subtle, #f0f0f5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brel-cover-ph {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-faint, #aaa);
}
.brel-info { padding: 10px 12px 12px; }
.brel-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.25;
}
.brel-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.brel-artists {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 3px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================================
   Relaties Page (pages/relaties.php)
   ========================================================= */
.rl-funnel {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.rl-tile {
  flex: 1;
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  text-decoration: none;
  transition: box-shadow 0.15s;
  display: block;
  cursor: pointer;
}
.rl-tile:hover,
.rl-tile.active {
  box-shadow: var(--shadow-lg);
}
.rl-tile-count {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
}
.rl-tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.rl-tile-overdue {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 3px;
}
.rl-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* =========================================================
   Relaties Venue List (partials/relaties_venue_list.php)
   ========================================================= */
.rvl-table { width: 100%; border-collapse: collapse; }
.rvl-table th {
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}
.rvl-table td { padding: 10px 10px; vertical-align: middle; }
.rvl-table tr.rvl-row { border-bottom: 1px solid var(--card-border); }
.rvl-table tr.rvl-row:hover td { background: var(--bg-subtle); }
.rvl-row.urgent td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.rvl-row.fresh td:first-child { box-shadow: inset 3px 0 0 #27ae60; }
.rvl-row.never td:first-child { box-shadow: inset 3px 0 0 var(--card-border); }
.rvl-name {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
}
.rvl-name:hover { color: var(--blue); }
.rvl-city { font-size: 0.85rem; color: var(--text-muted); }
.rvl-cat {
  font-size: 0.72rem;
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}
.rvl-date { font-size: 0.82rem; white-space: nowrap; }
.rvl-date.overdue { color: var(--red); font-weight: 600; }
.rvl-date.fresh { color: #27ae60; }
.rvl-date.never { color: var(--text-muted); font-style: italic; }
.rvl-btn-log {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.rvl-btn-follow {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--red);
  cursor: pointer;
  white-space: nowrap;
}
.rvl-btn-detail {
  font-size: 0.78rem;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  text-decoration: none;
}
.rvl-panel-row td { padding: 0; }
.rvl-panel-inner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 14px 16px;
  margin: 0 0 4px;
}
.rvl-lp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.rvl-lp-field label {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rvl-lp-select,
.rvl-lp-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  color: var(--input-color);
  font-size: 0.75rem;
  padding: 5px 8px;
}
.rvl-lp-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  color: var(--input-color);
  font-size: 0.75rem;
  padding: 5px 8px;
  resize: vertical;
  min-height: 52px;
  margin-bottom: 8px;
}
.rvl-lp-reminder {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.rvl-lp-reminder input[type=date] {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  color: var(--input-color);
  font-size: 0.72rem;
  padding: 3px 7px;
}
.rvl-lp-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.rvl-lp-footer {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.rvl-lp-cancel {
  font-size: 0.75rem;
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
}
.rvl-lp-save {
  font-size: 0.75rem;
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 6px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* =========================================================
   Relaties Redesign — Pills, Venue Rows, Panel
   ========================================================= */
.rl-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.rl-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.rl-pill.rl-pill-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.rl-pill-count {
  font-weight: 700;
  font-size: 0.78rem;
}
.rl-pill.rl-pill-active .rl-pill-count {
  color: rgba(255,255,255,0.85);
}

/* Venue rows */
.rl-venue-rows {
  display: flex;
  flex-direction: column;
}
.rl-venue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--card-border);
  cursor: pointer;
  transition: background 0.1s;
}
.rl-venue-row:hover {
  background: var(--bg-subtle);
}
.rl-venue-row.rl-vr-selected {
  background: rgba(52, 152, 219, 0.08);
  border-left: 3px solid var(--blue);
  padding-left: 9px;
}
.rl-vr-check {
  flex-shrink: 0;
}
.rl-vr-main {
  flex: 1;
  min-width: 0;
}
.rl-vr-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.rl-vr-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.rl-vr-meta {
  flex-shrink: 0;
  text-align: right;
}
.rl-vr-date {
  font-size: 0.78rem;
  white-space: nowrap;
}
.rl-urgency-never { color: var(--text-muted); font-style: italic; }
.rl-urgency-recent { color: #27ae60; font-weight: 600; }
.rl-urgency-overdue { color: var(--red); font-weight: 600; }
.rl-urgency-stale { color: var(--text-muted); }

/* Main layout: list + panel */
.rl-main {
  display: flex;
  gap: 0;
  min-height: 400px;
}
.rl-venue-list {
  flex: 1;
  min-width: 0;
}

/* Side panel */
.rl-venue-panel {
  width: 400px;
  min-width: 400px;
  background: var(--card-bg);
  overflow-y: auto;
  max-height: calc(100vh - 100px);
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
  z-index: 100;
}
.rl-panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--card-border);
}
.rl-panel-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
}
.rl-panel-label {
  font-size: .72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.rl-panel-actions {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
}
.rl-panel-actions .btn {
  flex: 1;
  text-align: center;
}

/* Funnel bar + filters row */
.rl-funnel-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.rl-filters {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.rl-filters .form-input {
  font-size: .78rem;
  padding: 5px 8px;
  min-width: 0;
  max-width: 160px;
}

/* Action list */
.rl-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.rl-action-explicit {
  background: rgba(231,76,60,0.08);
  border-left: 3px solid var(--red);
}
.rl-action-today {
  background: rgba(243,156,18,0.08);
  border-left: 3px solid #f39c12;
}
.rl-action-label {
  font-size: .7rem;
  font-weight: 600;
  min-width: 70px;
  text-transform: uppercase;
}
.suggestion-row {
  margin-bottom: 4px;
}
.rl-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-left: 3px solid var(--card-border);
  border-radius: 6px;
}
.rl-dismiss-btn {
  font-size: .72rem;
  padding: 2px 6px;
  border-radius: 3px;
  border: none;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
}
.rl-dismiss-btn:hover {
  color: var(--text-muted);
}

/* Batch mail bar */
.rl-mail-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(52,152,219,0.08);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: .85rem;
}

/* Tablet */
@media (max-width: 1100px) {
  .rl-venue-panel {
    width: 340px;
    min-width: 340px;
    right: 12px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .rl-main {
    flex-direction: column;
  }
  .rl-venue-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: 100%;
    max-height: 100vh;
    transform: none;
    z-index: 1000;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    border-radius: 0;
  }
  .rl-funnel-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .rl-filters {
    margin-left: 0;
    width: 100%;
  }
}

/* Relaties: status select in panel */
.rl-panel-header select {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.rl-panel-header select:hover {
    opacity: 0.85;
}

/* Relaties: log form in panel */
#rl-log-form textarea {
    font-family: inherit;
}

/* =========================================================
   Search Page (pages/search.php)
   ========================================================= */
.sr-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--card-border);
}
.sr-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 28px;
}
.sr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: box-shadow 0.12s;
}
.sr-row:hover { box-shadow: var(--shadow-lg); }
.sr-thumb {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-thumb-ph {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-muted);
}
.sr-thumb-sq { border-radius: 3px; }
.sr-body { flex: 1; min-width: 0; }
.sr-title {
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.sr-pill {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

/* =========================================================
   Release Detail Page (pages/release_detail.php)
   ========================================================= */
.rel-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 768px) {
  .rel-detail { grid-template-columns: 1fr; }
}
.rel-detail-cover {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rel-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.rel-detail-cover-ph {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-faint);
}
.rel-detail-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-size: 0.88rem;
  margin-top: 14px;
}
.rel-detail-meta dt {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.82rem;
}
.rel-detail-meta dd {
  margin: 0;
  color: var(--text-primary);
}
.rel-track {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.rel-track:last-child { border-bottom: none; }
.rel-track-num {
  color: var(--text-faint);
  font-weight: 600;
  min-width: 24px;
  text-align: right;
}
.rel-track-title { flex: 1; color: var(--text-primary); }
.rel-track-dur { color: var(--text-muted); font-size: 0.82rem; }
.rel-person-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  font-size: 0.82rem;
  color: var(--text-primary);
  text-decoration: none;
  margin: 3px 3px 3px 0;
  transition: border-color 0.15s;
}
.rel-person-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.rel-person-role {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 500;
}

/* tab-panel visibility (used on settings + detail pages) */
.tab-panel.tab-hidden { display: none; }

/* =========================================================
   Settings Page — Changelog Body (pages/settings.php)
   ========================================================= */
.changelog-body h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text-primary);
}
.changelog-body h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 4px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.changelog-body h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 14px 0 5px;
}
.changelog-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.changelog-body li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.changelog-body li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.changelog-body li strong {
  color: var(--text-primary);
  font-weight: 600;
}
.changelog-body code {
  font-size: 0.78rem;
  background: var(--bg-subtle);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--blue);
}
.changelog-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 5px 0;
}
.changelog-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.cl-sub-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.cl-sub-tab {
  padding: 5px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.cl-sub-tab:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}
.cl-sub-tab.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* =========================================================
   Acquisitie Page (pages/acquisitie.php)
   ========================================================= */
.funnel-bar { display: flex; gap: 8px; margin-bottom: 18px; }
.funnel-tile {
  flex: 1;
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  text-decoration: none;
  transition: box-shadow 0.15s;
  display: block;
}
.funnel-tile:hover,
.funnel-tile.active { box-shadow: var(--shadow-lg); }
.ft-count { font-size: 1.5rem; font-weight: 700; line-height: 1; margin-bottom: 3px; }
.ft-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.ft-overdue { font-size: 0.65rem; font-weight: 600; color: var(--red); margin-top: 3px; }
.status-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--card-border); margin-bottom: 14px; }
.stab {
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.15s;
}
.stab:hover { color: var(--text-primary); }
.stab.active { color: var(--blue); border-bottom-color: var(--blue); }
.stab .badge {
  display: inline-block;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1px 6px;
  font-size: 0.62rem;
  margin-left: 4px;
}
.stab.active .badge { background: rgba(52, 152, 219, 0.15); color: var(--blue); }
.filter-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.filter-count { font-size: 0.72rem; color: var(--text-muted); margin-left: 4px; }
.outreach-table { width: 100%; border-collapse: collapse; }
.outreach-table th {
  padding: 5px 10px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}
.outreach-table td { padding: 9px 10px; vertical-align: middle; }
.outreach-table tr.venue-row { border-bottom: 1px solid var(--card-border); }
.outreach-table tr.venue-row:hover td { background: var(--bg-subtle); }
.venue-row.urgent td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.venue-row.fresh td:first-child { box-shadow: inset 3px 0 0 #27ae60; }
.venue-row.never td:first-child { box-shadow: inset 3px 0 0 var(--card-border); }
.venue-name-link { font-weight: 600; color: var(--text-primary); text-decoration: none; font-size: 0.88rem; }
.venue-name-link:hover { color: var(--blue); }
.venue-city { font-size: 0.78rem; color: var(--text-muted); }
.cat-pill {
  font-size: 0.62rem;
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  white-space: nowrap;
}
.contact-date { font-size: 0.75rem; white-space: nowrap; }
.contact-date.overdue { color: var(--red); font-weight: 600; }
.contact-date.fresh { color: #27ae60; }
.contact-date.never { color: var(--text-muted); font-style: italic; }
.btn-opvolgen {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--red);
  cursor: pointer;
  white-space: nowrap;
}
.btn-log {
  font-size: 0.68rem;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.btn-detail {
  font-size: 0.72rem;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  text-decoration: none;
}
.log-panel-row td { padding: 0; }
.log-panel-inner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 14px 16px;
  margin: 0 0 4px;
}
.lp-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.lp-field label {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lp-select,
.lp-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  color: var(--input-color);
  font-size: 0.75rem;
  padding: 5px 8px;
}
.lp-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  color: var(--input-color);
  font-size: 0.75rem;
  padding: 5px 8px;
  resize: vertical;
  min-height: 52px;
  margin-bottom: 8px;
}
.lp-reminder {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.lp-reminder input[type=date] {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  color: var(--input-color);
  font-size: 0.72rem;
  padding: 3px 7px;
}
.lp-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.lp-footer { display: flex; gap: 6px; justify-content: flex-end; }
.lp-btn-cancel {
  font-size: 0.75rem;
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
}
.lp-btn-save {
  font-size: 0.75rem;
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 6px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* =========================================================
   CRM Page (pages/crm.php)
   ========================================================= */
.crm-drop-group { display: none; }
.crm-drop-group.active { display: block; }

/* =========================================================
   Discografie Page (pages/discografie.php)
   ========================================================= */
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.rel-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow 0.15s;
  text-decoration: none;
  display: block;
}
.rel-card:hover { box-shadow: var(--shadow-lg); }
.rel-cover {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-subtle, #f0f0f5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rel-cover img { width: 100%; height: 100%; object-fit: cover; }
.rel-cover-ph { font-size: 2rem; font-weight: 800; color: var(--text-faint, #aaa); }
.rel-info { padding: 10px 12px 12px; }
.rel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.25;
}
.rel-meta { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.rel-artists {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rel-type-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* =========================================================
   Frontend Page (pages/frontend.php)
   ========================================================= */
.fe-section {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 24px;
}
.fe-section-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; color: var(--text-primary); }
.fe-section-desc { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 20px; }
.fe-band-list { display: flex; flex-direction: column; gap: 2px; }
.fe-band-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.fe-band-row:hover { background: var(--hover-bg, rgba(0, 0, 0, 0.03)); }
.fe-band-row.fe-selected { background: rgba(34, 197, 94, 0.06); }
.fe-band-cb { width: 18px; height: 18px; accent-color: var(--red, #e74c3c); cursor: pointer; flex-shrink: 0; }
.fe-band-nr {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red, #e74c3c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.fe-selected .fe-band-nr { opacity: 1; }
.fe-band-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.fe-band-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.fe-band-name { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.fe-counter { font-size: 0.85rem; color: var(--text-muted); margin-left: auto; font-weight: 500; }
.fe-counter b { color: var(--text-primary); }
.fe-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.fe-product-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* =========================================================
   Social Post Form (pages/social_post.php)
   ========================================================= */
.sp-form { max-width: 720px; }
.sp-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.sp-form .field { margin-bottom: 20px; }
.sp-form select,
.sp-form textarea,
.sp-form input[type="datetime-local"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--card-border, #ddd);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text-primary);
  resize: vertical;
}
.sp-form textarea { min-height: 120px; line-height: 1.6; }
.sp-form textarea:focus,
.sp-form select:focus,
.sp-form input:focus {
  outline: none;
  border-color: var(--blue, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.sp-checkboxes { display: flex; gap: 12px; flex-wrap: wrap; }
.sp-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.85rem;
  font-weight: 500;
}
.sp-checkbox:has(input:checked) {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.06);
}
.sp-checkbox input { accent-color: var(--blue); }
.sp-crosspost {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--card-border, #ddd);
}
.sp-crosspost .sp-checkbox:has(input:checked) {
  border-color: var(--red);
  background: rgba(233, 69, 96, 0.06);
}
.sp-crosspost .sp-checkbox input { accent-color: var(--red); }
.sp-media-zone {
  border: 2px dashed var(--card-border, #ddd);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.sp-media-zone:hover,
.sp-media-zone.dragover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.04);
}
.sp-media-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.sp-media-item {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-subtle);
}
.sp-media-item img,
.sp-media-item video { width: 100%; height: 100%; object-fit: cover; }
.sp-media-item .sp-media-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.sp-actions {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  margin-top: 10px;
}
.sp-char-count { font-size: 0.75rem; color: var(--text-muted); text-align: right; margin-top: 4px; }
.sp-booking-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle, #f5f5fa);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* =========================================================
   Social Media Page (pages/social.php)
   ========================================================= */
/* Tabs */
.sm-tab-bar {
  display: flex;
  border-bottom: 2px solid var(--card-border, #e2e2ea);
  margin-bottom: 20px;
  gap: 0;
}
.sm-tab-btn {
  background: none;
  border: none;
  padding: 9px 18px 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.sm-tab-btn:hover { color: var(--text-primary); }
.sm-tab-btn.sm-tab-active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }
.sm-tab-panel { display: none; }
.sm-tab-panel.sm-tab-show { display: block; }

/* Posts */
.sp-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.sp-filters select {
  padding: 6px 10px;
  border: 1px solid var(--card-border, #ddd);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--card-bg, #fff);
  color: var(--text-primary);
}
.sp-grid { display: flex; flex-direction: column; gap: 12px; }
.sp-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.15s;
}
.sp-card:hover { box-shadow: var(--shadow-lg); }
.sp-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle, #f0f0f5);
  flex-shrink: 0;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint, #ccc);
}
.sp-body { flex: 1; min-width: 0; }
.sp-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: 0.78rem; }
.sp-band { font-weight: 600; color: var(--text-primary); }
.sp-status {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sp-status-draft { background: #e8e8ef; color: #666; }
.sp-status-scheduled { background: #fff3cd; color: #856404; }
.sp-status-publishing { background: #cce5ff; color: #004085; }
.sp-status-published { background: #d4edda; color: #155724; }
.sp-status-failed { background: #f8d7da; color: #721c24; }
.sp-caption {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-date { color: var(--text-muted, #888); font-size: 0.75rem; }
.sp-platforms { display: flex; gap: 4px; }
.sp-platform {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sp-platform-facebook { background: #e7f0ff; color: #1877f2; }
.sp-platform-instagram { background: #fce4ec; color: #e4405f; }
.sp-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.sp-empty svg { display: block; margin: 0 auto 12px; opacity: 0.4; }
.sp-delete-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--card-border, #e0e0e8);
  border-radius: var(--radius-sm);
  background: var(--card-bg, #fff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint, #bbb);
  transition: all 0.15s;
  padding: 0;
}
.sp-delete-btn:hover { border-color: #dc3545; color: #dc3545; background: rgba(220, 53, 69, 0.05); }

/* Koppelingen */
.sk-grid { display: flex; flex-direction: column; gap: 14px; }
.sk-band {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
}
.sk-band-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sk-band-name { font-weight: 700; font-size: 0.94rem; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.sk-eigen {
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sk-accounts { display: flex; flex-direction: column; gap: 8px; }
.sk-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle, #f5f5fa);
}
.sk-account-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sk-account-icon.sk-fb { background: #e7f0ff; color: #1877f2; }
.sk-account-icon.sk-ig { background: #fce4ec; color: #e4405f; }
.sk-account-info { flex: 1; min-width: 0; }
.sk-account-name { font-weight: 600; font-size: 0.84rem; color: var(--text-primary); }
.sk-account-id { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.sk-account-date { font-size: 0.72rem; color: var(--text-faint); }
.sk-no-accounts { font-size: 0.84rem; color: var(--text-muted); padding: 8px 0; }
.sk-disconnect {
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.sk-disconnect:hover { border-color: #dc3545; color: #dc3545; }

/* =========================================================
   Social Templates Page (pages/social_templates.php)
   ========================================================= */
.st-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--bg-subtle, #f5f5fa);
  border-radius: var(--radius-lg);
}
.st-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.st-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.15s;
}
.st-card:hover { box-shadow: var(--shadow-lg); }
.st-card.st-inactive { opacity: 0.55; }
.st-drag { cursor: grab; color: var(--text-faint); padding: 4px 0; display: flex; align-items: center; }
.st-body { flex: 1; min-width: 0; }
.st-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.st-name { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.st-trigger {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.st-trigger-days_before { background: #fff3cd; color: #856404; }
.st-trigger-day_of { background: #d4edda; color: #155724; }
.st-trigger-day_after { background: #cce5ff; color: #004085; }
.st-trigger-booking_created { background: #e8e8ef; color: #666; }
.st-caption-preview {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: 0.72rem; color: var(--text-faint); }
.st-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start; }
.st-toggle {
  width: 36px;
  height: 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.st-toggle.st-on { background: var(--red); }
.st-toggle.st-off { background: #ccc; }
.st-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.st-toggle.st-on::after { transform: translateX(16px); }
.st-small-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: all 0.15s;
  padding: 0;
}
.st-small-btn:hover { border-color: var(--blue); color: var(--blue); }
.st-small-btn.st-del:hover { border-color: #dc3545; color: #dc3545; }

/* Form */
.st-form {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 24px;
  max-width: 680px;
}
.st-form h3 { margin: 0 0 16px; font-size: 0.94rem; font-weight: 700; color: var(--text-primary); }
.st-field { margin-bottom: 16px; }
.st-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
.st-field input,
.st-field select,
.st-field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text-primary);
  box-sizing: border-box;
}
.st-field textarea { min-height: 90px; line-height: 1.6; resize: vertical; }
.st-field input:focus,
.st-field select:focus,
.st-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.st-field .st-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.st-row { display: flex; gap: 14px; }
.st-row .st-field { flex: 1; }
.st-checks { display: flex; gap: 10px; flex-wrap: wrap; }
.st-check { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; cursor: pointer; }
.st-check input { accent-color: var(--blue); }
.st-form-actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--card-border); }
.st-var-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.st-var {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-subtle, #eef);
  font-size: 0.72rem;
  font-family: monospace;
  cursor: pointer;
  border: 1px solid var(--card-border);
  transition: border-color 0.15s;
}
.st-var:hover { border-color: var(--blue); }

/* =========================================================
   Changelog Page (pages/changelog.php)
   ========================================================= */
.cl-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.cl-tab {
  padding: 7px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.cl-tab:hover { background: var(--bg-subtle); color: var(--text-primary); }
.cl-tab-active { background: var(--red); color: #fff; border-color: var(--red); }
.cl-tab-active:hover { background: var(--red); color: #fff; }

/* =========================================================
   Social Select Page (pages/social_select_page.php)
   ========================================================= */
.sp-page-list { max-width: 600px; display: flex; flex-direction: column; gap: 10px; }
.sp-page-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--card-bg);
  cursor: pointer;
  transition: box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}
.sp-page-card:hover { box-shadow: var(--shadow-lg); }
.sp-page-card.sp-linked { opacity: 0.5; cursor: default; pointer-events: none; }
.sp-page-info { flex: 1; }
.sp-page-name { font-weight: 600; font-size: 0.92rem; color: var(--text-primary); }
.sp-page-detail { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; display: flex; gap: 12px; flex-wrap: wrap; }
.sp-page-ig { font-size: 0.78rem; color: #e4405f; margin-top: 4px; }
.sp-page-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.sp-page-linked-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle, #f0f0f5);
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================================
   Musician List (partials/musician_list.php)
   ========================================================= */
.ml-table { width: 100%; border-collapse: collapse; }
.ml-table thead tr { border-bottom: 1px solid var(--card-border); }
.ml-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 14px 8px;
  text-align: left;
}
.ml-table tbody tr { border-bottom: 1px solid var(--card-border); transition: background 0.1s; }
.ml-table tbody tr:last-child { border-bottom: none; }
.ml-table tbody tr:hover { background: var(--bg-subtle); }
.ml-table td { padding: 12px 14px; vertical-align: middle; }
.ml-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ml-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ml-avatar-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27ae60;
  border: 2px solid var(--card-bg);
}
.ml-name-wrap { display: flex; align-items: center; gap: 11px; }
.ml-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
  text-decoration: none;
  display: block;
  line-height: 1.3;
}
.ml-name:hover { color: var(--blue); }
.ml-contact-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.6;
}
.ml-contact-line:hover { color: var(--text-primary); }
.ml-contact-line svg, .ml-contact-line i { flex-shrink: 0; opacity: 0.55; }
.ml-contact-line.muted { color: var(--text-muted); opacity: 0.45; pointer-events: none; }
.ml-bands { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

@media (max-width: 680px) {
  .ml-table th:nth-child(3),
  .ml-table td:nth-child(3) { display: none; }
  .ml-table th:first-child { width: auto; }
  .ml-table td { padding: 10px 8px; }
}

/* =========================================================
   Facelift v3 — Atmosphere & Polish
   ========================================================= */

/* Smooth page entrance */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

main {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbars (webkit) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.2);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.18);
}

/* Smoother transitions on all interactive elements */
a, button, input, select, textarea {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Status badges — more pill-like */
.status-badge {
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Selection color matching brand */
::selection {
  background: rgba(233, 69, 96, 0.15);
  color: inherit;
}

/* Focus-visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Topbar icon buttons — more refined hover */
.topbar-icon-btn {
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.topbar-icon-btn:hover {
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

/* Status-strip (booking detail) */
.status-strip { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 14px; }
.status-pill {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:6px; font-size:0.72rem; font-weight:600;
  cursor:pointer; transition:opacity 0.15s;
}
.status-pill:hover { opacity:0.85; }
.status-pill--done {
  background:rgba(39,174,96,0.15); border:1px solid rgba(39,174,96,0.3); color:#27ae60;
}
.status-pill--pending {
  background:rgba(255,255,255,0.04); border:1px solid var(--border); color:var(--text-muted);
}

/* Inline editing */
.inline-note { position:relative; min-height:1.5em; padding:4px 6px; border-radius:4px; cursor:pointer; }
.inline-note:hover { background:var(--bg-subtle); }
.inline-note:hover::after {
  content:'✎'; position:absolute; top:4px; right:6px;
  font-size:0.7rem; color:var(--text-muted); opacity:0.6;
}
.inline-placeholder { color:var(--text-muted); font-style:italic; font-size:0.85rem; }
.inline-note textarea {
  width:100%; min-height:60px; padding:6px; border:1px solid var(--input-border);
  border-radius:4px; background:var(--input-bg); color:var(--input-color);
  font-family:inherit; font-size:inherit; resize:vertical;
}

.inline-time-display { cursor:pointer; padding:2px 4px; border-radius:3px; }
.inline-time-display:hover { background:var(--bg-subtle); }

/* Status filter buttons (bookings list) */
.status-filters { display:flex; gap:4px; flex-wrap:wrap; }
.status-filter-btn {
  display:inline-flex; align-items:center;
  padding:4px 12px; border-radius:14px; border:1px solid var(--border);
  background:transparent; color:var(--text-muted); font-size:0.78rem;
  font-weight:500; cursor:pointer; font-family:inherit; transition:all 0.15s;
  text-decoration:none; line-height:1.4;
}
.status-filter-btn:hover { background:var(--bg-subtle); }
.status-filter-btn.active { background:var(--blue); color:#fff; border-color:var(--blue); font-weight:600; }

/* Document status icons (bookings list) */
.bk-doc-icons { display:inline-flex; gap:3px; margin-left:4px; vertical-align:middle; flex-shrink:0; }
.bk-doc-icon { width:14px !important; height:14px !important; min-width:14px; max-width:14px; opacity:0.7; flex-shrink:0; }

/* ── Booking detail two-column layout ─────────────────────── */
.bk-layout {
  display:grid; grid-template-columns:1fr 320px; gap:28px;
  padding:28px 32px; align-items:start;
}
.bk-main { min-width:0; }
.bk-sidebar { position:sticky; top:20px; display:flex; flex-direction:column; gap:16px; }

/* Date card in sidebar */
.bk-date-card {
  background:var(--red); color:#fff; border-radius:14px; padding:24px 20px;
  display:flex; flex-direction:column; align-items:center; gap:4px;
  box-shadow:0 4px 16px rgba(0,0,0,0.15);
}
.bk-date-day { font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; opacity:0.9; }
.bk-date-num { font-size:2.8rem; font-weight:800; line-height:1; }
.bk-date-month { font-size:0.85rem; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; opacity:0.9; }
.bk-date-times {
  margin-top:10px; padding-top:10px; border-top:1px solid rgba(255,255,255,0.2);
  width:100%; display:flex; justify-content:center; gap:20px;
}
.bk-date-time-block { text-align:center; }
.bk-date-time-label { font-size:0.6rem; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; opacity:0.7; display:block; margin-bottom:2px; }
.bk-date-time-value { font-size:1.15rem; font-weight:700; }

/* Sidebar cards */
.bk-sidebar-card {
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:12px; padding:16px 18px;
}
.bk-sidebar-title {
  font-size:0.7rem; font-weight:700; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--text-muted); margin-bottom:12px;
  display:flex; align-items:center; gap:6px;
}

/* Voortgang (vertical status pills in sidebar) */
.bk-voortgang-item {
  display:flex; align-items:center; gap:10px; padding:8px 0;
  border-bottom:1px solid var(--border-subtle); cursor:pointer;
}
.bk-voortgang-item:last-child { border-bottom:none; }
.bk-voortgang-icon {
  width:24px; height:24px; border-radius:50%; display:flex;
  align-items:center; justify-content:center; flex-shrink:0;
}
.bk-voortgang-icon--done { background:rgba(39,174,96,0.15); color:#27ae60; }
.bk-voortgang-icon--pending { background:var(--bg-subtle); color:var(--text-muted); }
.bk-voortgang-label { font-size:0.82rem; font-weight:600; flex:1; min-width:0; }
.bk-voortgang-label--done { color:#27ae60; }
.bk-voortgang-label--pending { color:var(--text-muted); }
.bk-voortgang-date { font-size:0.72rem; color:var(--text-muted); white-space:nowrap; }

/* Betrokkenen in sidebar */
.bk-betrokkene { padding:10px 0; border-bottom:1px solid var(--border-subtle); }
.bk-betrokkene:last-child { border-bottom:none; }
.bk-betrokkene-type {
  font-size:0.6rem; font-weight:700; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--text-muted); margin-bottom:4px;
}

/* Responsive: sidebar BOVEN content op smallere schermen */
@media (max-width:1100px) {
  .bk-layout { grid-template-columns:1fr; }
  .bk-sidebar { position:static; order:-1; flex-direction:row; flex-wrap:wrap; gap:12px; }
  .bk-sidebar > * { flex:1; min-width:220px; }
  .bk-date-card { flex-direction:row; padding:16px 20px; gap:16px; }
  .bk-date-num { font-size:1.8rem; }
  .bk-date-times { margin-top:0; padding-top:0; border-top:none; border-left:1px solid rgba(255,255,255,0.2); padding-left:16px; width:auto; }
}

/* =========================================================
   Facelift Components (Boekingen)
   ========================================================= */

/* Event Hero Widget */
.event-hero {
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px var(--accent-glow);
  border: none;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.event-hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.event-hero-inner {
  padding: 32px;
  position: relative;
  z-index: 2;
}

.date-day {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.date-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}
.date-big {
  font-size: 72px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -2px;
}
.date-month {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 1px;
}

.time-box {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.time-slot {
  flex: 1;
}
.time-arrow {
  font-size: 18px;
  opacity: 0.6;
  flex-shrink: 0;
}
.time-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  font-weight: 600;
  margin-bottom: 4px;
}
.time-value {
  font-size: 24px;
  font-weight: 700;
}

/* Pipeline Bar (horizontal, full-width above layout) */
.pipeline-bar {
  display: flex;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 24px 16px;
  margin: 20px 32px 0;
}
.pipeline-bar .pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.pipeline-bar .pipeline-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 14px; /* center of 28px indicator */
  min-width: 20px;
}
.pipeline-bar .pipeline-connector.completed {
  background: var(--success-text);
}
.pipeline-bar .step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-faint);
  transition: border-color .15s, color .15s;
}
.pipeline-bar .pipeline-step:hover .step-indicator {
  border-color: var(--blue);
  color: var(--blue);
}
.pipeline-bar .pipeline-step.completed .step-indicator {
  background: var(--success-bg);
  border-color: var(--success-text);
  color: var(--success-text);
}
.pipeline-bar .step-content {
  text-align: center;
  padding-top: 6px;
}
.pipeline-bar .step-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.pipeline-bar .step-date {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  margin-top: 1px;
}
.pipeline-bar .pipeline-step.completed .step-title {
  color: var(--success-text);
}

/* Pipeline responsive */
@media (max-width:700px) {
  .pipeline-bar {
    margin: 0 12px 16px;
    padding: 16px 12px 12px;
    overflow-x: auto;
  }
  .pipeline-bar .step-title {
    font-size: 10.5px;
  }
}

/* Entities Widget */
.entity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.entity-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.entity-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--red);
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.entity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.entity-avatar.darker { background: var(--border-subtle); border-color: var(--border); color: var(--text-muted); }
.entity-avatar.solid { background: var(--red); border-color: var(--red); color: white; }

.entity-info {
  flex: 1;
  min-width: 0;
}
.entity-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.entity-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.entity-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.entity-meta a {
  color: var(--blue); text-decoration: none; font-weight: 500; transition: color 0.2s;
}
.entity-meta a:hover { text-decoration: underline; }

/* Doc tags */
.doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  transition: all 0.2s;
  text-decoration: none;
}
.doc-tag i, .doc-tag svg { color: var(--text-muted); }
.doc-tag:hover { border-color: var(--red); color: var(--red); cursor: pointer; }
.doc-tag:hover i, .doc-tag:hover svg { color: var(--red); }

/* Unified Note Block styling */
.note-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.note-block:last-child { border-bottom: none; }
.note-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 8px;
}
.note-content-box {
  background: var(--bg-hover);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
}
.note-content-box:hover {
  border-color: var(--border);
}
.note-content-box p { margin-bottom: 10px; }
.note-content-box p:last-child { margin-bottom: 0; }

/* =========================================================
   Venue-type badges (matching systeem)
   ========================================================= */
.vt-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.vt-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.5;
}
.vt-intiem     { background: #f3e8ff; color: #7c3aed; }
.vt-caf        { background: #fef3c7; color: #92400e; }
.vt-jazzclub   { background: #dbeafe; color: #1d4ed8; }
.vt-poppodium  { background: #fce7f3; color: #9d174d; }
.vt-theater    { background: #fee2e2; color: #991b1b; }
.vt-kerk       { background: #d1fae5; color: #065f46; }
.vt-festival   { background: #ffe4e6; color: #be123c; }
.vt-groot      { background: #e0e7ff; color: #3730a3; }
