.search-input-wrapper {
  width: 100%;
  flex: 1;
}
.topbar .title {
  font-size: 28px !important;
  font-weight: bold !important;
}
.topbar .user-info {
  margin-left: auto !important;
  text-align: right !important;
  white-space: nowrap !important;
}
.topbar .search-container {
  position: relative !important;
  flex: 1 !important;
  width: 100% !important;
  max-width: 500px !important;
  min-width: 200px !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
}
.topbar .search-field {
  width: 100% !important;
  padding: 8px 12px !important;
  padding-right: 80px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  background: var(--input-bg) !important;
  color: var(--text-color) !important;
}
.topbar .search-backspace {
  position: absolute !important;
  right: 45px !important;
  margin-left: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #bbb !important;
  cursor: pointer !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  z-index: var(--z-search-controls) !important;
  width: 20px !important;
  height: 20px !important;
}
.topbar .search-loupe {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #888 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  z-index: var(--z-search-controls) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  width: 20px !important;
  height: 20px !important;
  line-height: 1 !important;
  padding: 0 !important;
  cursor: pointer !important;
}
.topbar .search-separator {
  position: absolute !important;
  right: 36px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 1px !important;
  height: 20px !important;
  background: #bbb !important;
  z-index: var(--z-search-controls) !important;
  pointer-events: none !important;
  display: block !important;
}
.topbar .actions {
  display: flex !important;
  gap: 10px !important;
}
.topbar .account-btn,
.topbar .actions a {
  text-decoration: none !important;
  padding: 8px 12px !important;
  background-color: var(--button-bg) !important;
  color: var(--button-text) !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: normal !important;
  border: none !important;
  box-shadow: none !important;
  line-height: normal !important;
  display: inline-block !important;
}
.search-field {
  width: 100%;
  box-sizing: border-box;
  padding-right: 80px;
  min-width: 0;
  display: block;
  padding-right: 70px !important;
  min-width: 0;
}
.search-loupe:focus-visible, .search-backspace:focus-visible {
  outline: 2px solid var(--border-hover);
  outline-offset: 2px;
}
/* Play-Button aktiv: grün hinterlegt */
.play-button.active {
  background: #4caf50 !important;
  color: #fff !important;
}
/* Dark Mode und Theme Variables */
:root {
  /* Z-Index Hierarchie */
  --z-background: -1;
  --z-normal: 1;
  --z-table-content: 2;
  --z-table-header: 10;
  --z-topbar: 20;
  --z-search-controls: 25;
  --z-table-focus: 50;
  --z-table-header-focus: 75;
  --z-dropdown: 100;
  --z-focus-outline: 200;
  --z-dropdown-focus: 300;

  /* Light Theme (Default) */
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-color: #333333;
  --text-secondary: #666666;
  --border-color: #ccc;
  --border-hover: #007BFF;
  --button-bg: #007BFF;
  --button-text: #ffffff;
  --button-hover: #0056b3;
  --button-delete-bg: #ff0000;
  --button-delete-hover: #c10000;
  --table-header-bg: #f0f0f0;
  --table-header-hover-bg: #c8c8c8;
  --table-header-sorted-bg: #b8b8b8;
  --table-header-sorted-hover-bg: #a8a8a8;
  --table-row-hover: #e8e8e8;
  --table-row-active: #d8d8d8;
  --table-border: #999999;
  --detail-row-bg: #f0f2f5;
  --input-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --topbar-bg: #ffffff;
  --topbar-border: #e0e0e0;
  --scrollbar-track: #f1f1f1;
  --scrollbar-thumb: #c1c1c1;
  --scrollbar-thumb-hover: #a8a8a8;
  --sort-arrow-primary: #333333;
  --sort-arrow-secondary: #666666;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-color: #d4d4d4;
  --text-secondary: #9a9a9a;
  --border-color: #404040;
  --border-hover: #4a9eff;
  --button-bg: #4a9eff;
  --button-text: #ffffff;
  --button-hover: #357abd;
  --button-delete-bg: #ff4444;
  --button-delete-hover: #cc0000;
  --table-header-bg: #2d2d2d;
  --table-header-hover-bg: #404040;
  --table-header-sorted-bg: #363636;
  --table-header-sorted-hover-bg: #4a4a4a;
  --table-row-hover: #404040;
  --table-row-active: #4a4a4a;
  --table-border: #606060;
  --detail-row-bg: #262626;
  --input-bg: #2d2d2d;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --topbar-bg: #1f1f1f;
  --topbar-border: #404040;
  --scrollbar-track: #2d2d2d;
  --scrollbar-thumb: #555555;
  --scrollbar-thumb-hover: #777777;
  --sort-arrow-primary: #d4d4d4;
  --sort-arrow-secondary: #9a9a9a;
}

/* High Contrast Theme */
[data-theme="high-contrast"] {
  --bg-color: #000000;
  --bg-secondary: #111111;
  --text-color: #ffffff;
  --text-secondary: #cccccc;
  --border-color: #ffffff;
  --border-hover: #ffff00;
  --button-bg: #ffffff;
  --button-text: #000000;
  --button-hover: #ffff00;
  --button-delete-bg: #ff0000;
  --button-delete-hover: #ffff00;
  --table-header-bg: #000000;
  --table-header-hover-bg: #333333;
  --table-header-sorted-bg: #222222;
  --table-header-sorted-hover-bg: #444444;
  --table-row-hover: #333333;
  --table-row-active: #444444;
  --table-border: #ffffff;
  --detail-row-bg: #111111;
  --input-bg: #000000;
  --shadow-color: rgba(255, 255, 255, 0.3);
  --topbar-bg: #000000;
  --topbar-border: #ffffff;
  --scrollbar-track: #333333;
  --scrollbar-thumb: #ffffff;
  --scrollbar-thumb-hover: #ffff00;
  --sort-arrow-primary: #ffffff;
  --sort-arrow-secondary: #cccccc;
}

/* Allgemeine Focus-Styles für bessere Tab-Navigation in allen Themes */
/* Spezifische Regeln statt universeller *:focus Regel */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
table#bootlegTable td:focus,
table#bootlegTable tr:focus {
  position: relative !important;
  z-index: var(--z-table-focus) !important;
  outline: none !important; /* Entfernt Standard-Outline */
}

/* Kopfzellen benötigen höheren z-index wegen horizontaler Scrollbar */
table#bootlegTable th:focus {
  position: relative !important;
  z-index: var(--z-table-header-focus) !important;
  outline: none !important; /* Entfernt Standard-Outline */
}

/* Hover-Effekte nur bei Tastatur-Navigation */
body:not(.using-mouse) .login-btn:hover,
body:not(.using-mouse) .header a:hover,
body:not(.using-mouse) .index-edit-btn:hover,
body:not(.using-mouse) .index-del-btn:hover,
body:not(.using-mouse) .account-form button[type="submit"]:hover,
body:not(.using-mouse) .bm-home-link:hover,
body:not(.using-mouse) .bm-logout-link:hover,
body:not(.using-mouse) .add-form.add-form-fullwidth .form-file:hover,
body:not(.using-mouse) .add-form.add-form-fullwidth .file-label:hover,
body:not(.using-mouse) .add-submit-btn:hover,
body:not(.using-mouse) .topbar .account-btn:hover,
body:not(.using-mouse) .topbar .actions a:hover,
body:not(.using-mouse) .user-add-link:hover {
  background-color: var(--button-hover);
}

/* Standard Hover-Effekte bei Maus-Navigation (nur visueller Feedback ohne Farbänderung) */
.login-btn:hover,
.header a:hover,
.index-edit-btn:hover,
.account-form button[type="submit"]:hover,
.bm-home-link:hover,
.bm-logout-link:hover,
.add-form.add-form-fullwidth .form-file:hover,
.add-form.add-form-fullwidth .file-label:hover,
.add-submit-btn:hover,
.topbar .account-btn:hover,
.topbar .actions a:hover,
.user-add-link:hover {
  /* Nur Cursor-Änderung, keine Farbänderung bei Maus */
  cursor: pointer;
}

/* Delete Buttons bekommen immer Hover (da sie wichtig für UX Feedback sind) */
.index-del-btn:hover {
  background-color: var(--button-delete-hover);
}

/* Spezielle Focus-Styles für Tastatur-Navigation - nur wenn NICHT High Contrast */
:root:not([data-theme="high-contrast"]) button:focus-visible,
:root:not([data-theme="high-contrast"]) a:focus-visible,
:root:not([data-theme="high-contrast"]) input:not(.topbar .search-field):focus-visible,
:root:not([data-theme="high-contrast"]) select:focus-visible,
:root:not([data-theme="high-contrast"]) textarea:focus-visible {
  outline: 2px solid var(--border-hover) !important;
  outline-offset: 2px;
  position: relative !important;
  z-index: var(--z-focus-outline) !important;
  border-color: var(--border-color) !important; /* Normaler Rand bleibt bei Tab-Navigation */
  box-shadow: none !important; /* Kein Box-Shadow bei Tab-Navigation */
}

/* Tabellenelemente haben mittleren z-index - sichtbar aber unter Dropdowns */
:root:not([data-theme="high-contrast"]) table#bootlegTable td:focus-visible,
:root:not([data-theme="high-contrast"]) table#bootlegTable tr:focus-visible {
  outline: 2px solid var(--border-hover) !important;
  outline-offset: 2px;
  position: relative !important;
  z-index: var(--z-table-focus) !important; /* Mittlerer z-index für Tabellen-Focus */
  border-color: var(--border-color) !important;
  box-shadow: none !important;
}

/* Kopfzellen benötigen höheren z-index wegen horizontaler Scrollbar */
:root:not([data-theme="high-contrast"]) table#bootlegTable th:focus-visible {
  outline: 2px solid var(--border-hover) !important;
  outline-offset: 2px;
  position: relative !important;
  z-index: var(--z-table-header-focus) !important; /* Höherer z-index für Kopfzellen-Focus */
  border-color: var(--border-color) !important;
  box-shadow: none !important;
}

/* Spezielle Focus-Styles für Search Backspace - ohne Position-Änderung und ohne clip-path */
:root:not([data-theme="high-contrast"]) .topbar .search-backspace:focus-visible {
  outline: 2px solid var(--border-hover) !important;
  outline-offset: 2px;
  position: absolute !important; /* Behält absolute Position */
  z-index: var(--z-focus-outline) !important;
  clip-path: none !important; /* Entfernt clip-path für saubere Outline */
}

/* Spezielle Focus-Styles für Search Loupe - ohne Position-Änderung */
:root:not([data-theme="high-contrast"]) .topbar .search-loupe:focus-visible {
  outline: 2px solid var(--border-hover) !important;
  outline-offset: 2px;
  position: absolute !important; /* Behält absolute Position */
  z-index: var(--z-focus-outline) !important;
}

/* Spezielle Focus-Styles für Suchfeld - nur border-color, keine outline */
:root:not([data-theme="high-contrast"]) .topbar .search-field:focus {
  border-color: var(--button-bg) !important; /* Suchfeld behält button-bg Farbe */
  outline: none !important; /* Keine outline für Suchfeld */
}

/* Tabellenzellen und -zeilen bekommen Focus-Styles für Tab-Navigation */
table#bootlegTable th,
table#bootlegTable td,
table#bootlegTable tr {
  /* Tabindex setzen damit sie fokussierbar sind */
  outline: none;
}

table#bootlegTable th:focus,
table#bootlegTable td:focus,
table#bootlegTable tr:focus {
  outline: none;
  background-color: var(--table-row-hover);
}

/* High Contrast spezielle Styles für Login-Form */
[data-theme="high-contrast"] .login-form input:focus {
  box-shadow: 0 0 5px #ffff00;
}

/* High Contrast - Gelbe Umrandung für Tastatur-Navigation */
/* Spezifische Regeln statt universeller *:focus Regel */
[data-theme="high-contrast"] button:focus,
[data-theme="high-contrast"] a:focus,
[data-theme="high-contrast"] input:focus,
[data-theme="high-contrast"] select:focus,
[data-theme="high-contrast"] textarea:focus,
[data-theme="high-contrast"] table#bootlegTable td:focus,
[data-theme="high-contrast"] table#bootlegTable tr:focus {
  outline: none !important; /* Entfernt Standard-Outline */
  position: relative !important;
  z-index: var(--z-table-focus) !important;
}

/* Kopfzellen benötigen höheren z-index wegen horizontaler Scrollbar */
[data-theme="high-contrast"] table#bootlegTable th:focus {
  outline: none !important; /* Entfernt Standard-Outline */
  position: relative !important;
  z-index: var(--z-table-header-focus) !important;
}

[data-theme="high-contrast"] button:focus-visible,
[data-theme="high-contrast"] a:focus-visible,
[data-theme="high-contrast"] input:focus-visible,
[data-theme="high-contrast"] select:focus-visible,
[data-theme="high-contrast"] textarea:focus-visible {
  outline: 2px solid #ffff00 !important;
  outline-offset: 2px;
  position: relative !important;
  z-index: var(--z-focus-outline) !important;
}

/* Tabellenelemente im High Contrast haben mittleren z-index */
[data-theme="high-contrast"] table#bootlegTable td:focus-visible,
[data-theme="high-contrast"] table#bootlegTable tr:focus-visible {
  outline: 2px solid #ffff00 !important;
  outline-offset: 2px;
  position: relative !important;
  z-index: var(--z-table-focus) !important;
}

/* Kopfzellen benötigen höheren z-index wegen horizontaler Scrollbar */
[data-theme="high-contrast"] table#bootlegTable th:focus-visible {
  outline: 2px solid #ffff00 !important;
  outline-offset: 2px;
  position: relative !important;
  z-index: var(--z-table-header-focus) !important;
}

[data-theme="high-contrast"] input:focus-visible,
[data-theme="high-contrast"] button:focus-visible,
[data-theme="high-contrast"] select:focus-visible,
[data-theme="high-contrast"] textarea:focus-visible,
[data-theme="high-contrast"] a:focus-visible,
[data-theme="high-contrast"] table#bootlegTable td:focus-visible,
[data-theme="high-contrast"] table#bootlegTable tr:focus-visible {
  box-shadow: 0 0 5px #ffff00 !important;
  border-color: #ffff00 !important;
  position: relative !important;
  z-index: var(--z-table-focus) !important;
}

/* Kopfzellen benötigen höheren z-index wegen horizontaler Scrollbar */
[data-theme="high-contrast"] table#bootlegTable th:focus-visible {
  box-shadow: 0 0 5px #ffff00 !important;
  border-color: #ffff00 !important;
  position: relative !important;
  z-index: var(--z-table-header-focus) !important;
}

[data-theme="high-contrast"] .search-highlight {
  background-color: #ffff00 !important;
  color: #000000 !important;
}

[data-theme="high-contrast"] #bootlegTable td .search-highlight {
  background-color: #ffff00 !important;
  color: #000000 !important;
}

[data-theme="high-contrast"] table#bootlegTable th.sorted.asc::after {
  border-bottom-color: #ffffff;
}

[data-theme="high-contrast"] table#bootlegTable th.sorted.desc::after {
  border-top-color: #ffffff;
}

[data-theme="high-contrast"] table#bootlegTable th.secondary-sorted.asc::after {
  border-bottom-color: #cccccc;
}

[data-theme="high-contrast"] table#bootlegTable th.secondary-sorted.desc::after {
  border-top-color: #cccccc;
}

[data-theme="high-contrast"] .fav-star:hover {
  fill: #ffff00 !important;
}

/* System Theme Detection */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="bright"]) {
    --bg-color: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-color: #d4d4d4;
    --text-secondary: #9a9a9a;
    --border-color: #404040;
    --border-hover: #4a9eff;
    --button-bg: #4a9eff;
    --button-text: #ffffff;
    --button-hover: #357abd;
    --button-delete-bg: #ff4444;
    --button-delete-hover: #cc0000;
    --table-header-bg: #2d2d2d;
    --table-header-hover-bg: #404040;
    --table-header-sorted-bg: #363636;
    --table-header-sorted-hover-bg: #4a4a4a;
    --table-row-hover: #404040;
    --table-row-active: #4a4a4a;
    --table-border: #606060;
    --detail-row-bg: #262626;
    --input-bg: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --topbar-bg: #1f1f1f;
    --topbar-border: #404040;
    --scrollbar-track: #2d2d2d;
    --scrollbar-thumb: #555555;
    --scrollbar-thumb-hover: #777777;
    --sort-arrow-primary: #d4d4d4;
    --sort-arrow-secondary: #9a9a9a;
  }
}

/*
es folgt login.php
*/
body.login-page {
  margin: 0;
  padding: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", FreeSans, "Nimbus Sans L", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-form {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 30px 40px;
  border-radius: 6px;
  box-shadow: 0 4px 8px var(--shadow-color);
  width: 320px;
  box-sizing: border-box;
}

.login-form input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: var(--input-bg);
  color: var(--text-color);
}

.login-form input:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: 0 0 5px rgba(74, 158, 255, 0.5);
}

.login-btn {
  width: 100%;
  padding: 10px 12px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color;
}

.login-form p {
  margin-top: 10px;
  color: #b00020;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
.login-form p:empty {
  visibility: hidden;
}



/*
es folgt index.php    
*/

body {
  margin: 0;
  padding: 0px;
  font-family: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", FreeSans, "Nimbus Sans L", sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-color);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Verhindert Body-Scrolling */
}

.header {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.header a {
  text-decoration: none;
  padding: 8px 12px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border-radius: 4px;
  font-size: 14px;
}

table#bootlegTable {
  width: max-content; /* Tabelle nimmt benötigten Platz ein */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto; /* Automatische Spaltenbreiten */
  padding: 0;
  margin: 0 20px; /* Seitliche Abstände für die Tabelle */
}

table#bootlegTable thead {
  position: sticky;
  top: 0px; /* 15px Scrollbar + 1px Border - fest relativ zum Viewport */
  z-index: var(--z-table-header);
  background-color: var(--table-header-bg);
  margin-top: 0; 
}

/* Spezifische Spaltenbreiten */
table#bootlegTable th:first-child,
table#bootlegTable td:first-child {
  width: auto; /* DATE-Spalte: automatische Breite je nach Datumsformat */
  min-width: 80px; /* Mindestbreite für kürzeste Formate */
  white-space: nowrap; /* Verhindert Zeilenumbruch */
}

table#bootlegTable th:last-child,
table#bootlegTable td:last-child {
  width: 120px; /* UPLOADER-Spalte: optimiert für typische Benutzernamen */
  min-width: 120px;
  max-width: 120px;
}

/* Verhindert Resize für DATE-Spalte */
table#bootlegTable th:first-child::before {
  display: none !important;
}

/* Verhindert Resize für UPLOADER-Spalte */
table#bootlegTable th:last-child::before {
  display: none !important;
}

/* Verhindert Resize am linken Rand der Spalte NACH DATE */
table#bootlegTable th:first-child + th::before {
  display: none !important;
}

/* FAV-Spalte: feste Breite, nicht veränderbar, linksbündig */
table#bootlegTable th.fav-column,
table#bootlegTable td.fav-cell {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  text-align: left; /* Linksbündig wie andere Spalten */
  padding: 0px; /* Gleiche Padding wie andere Spalten */
}

table#bootlegTable th.fav-column{
  padding-left: 4px;
}

/* Verhindert Resize für FAV-Spalte (rechter und linker Rand) */
table#bootlegTable th.fav-column::before {
  display: none !important;
}

/* Verhindert Resize am linken Rand der Spalte NACH FAV */
table#bootlegTable th.fav-column + th::before {
  display: none !important;
}

/* UPLOAD-DATE-Spalte: automatische Breite wie DATE-Spalte, nicht veränderbar */
table#bootlegTable th.upload-date-column,
table#bootlegTable td.upload-date-cell {
  width: auto; /* automatische Breite je nach Datumsformat */
  min-width: 140px; /* Mindestbreite für Datumsformate mit Zeit */
  text-align: left;
  padding: 4px;
  white-space: nowrap; /* Verhindert Zeilenumbruch */
}

/* Verhindert Resize für UPLOAD-DATE-Spalte */
table#bootlegTable th.upload-date-column::before {
  display: none !important;
}

/* Favoriten-Container Styling */
.fav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  user-select: none;
}

.fav-star {
  transition: fill 0.2s ease;
  cursor: pointer;
}

.fav-star:hover {
  fill: #FFE55C !important;
  transform: scale(1.1);
}

.fav-count {
  font-weight: bold;
  line-height: 1;
}
.detail-audio {
  margin-bottom: 0px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.detail-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0px;
  grid-column: 2;
  grid-row: 1;
}
table#bootlegTable th,
table#bootlegTable td {
  border-right: 1px solid var(--table-border);
  border-bottom: 1px solid var(--table-border);
  padding: 8px;         /* gleiche Polsterung wie td */
  text-align: left;
  vertical-align: middle;  /* vertikal zentriert statt top */
  margin: 0;            /* kein zusätzlicher Abstand */
  font-size: 15px;
  height: auto;         /* gleiche Höhe für th und td */
  box-sizing: border-box;
  color: var(--text-color);
}

table#bootlegTable th:first-child,
table#bootlegTable td:first-child {
  border-left: 1px solid var(--table-border);
}

table#bootlegTable thead th {
  border-top: 1px solid var(--table-border);
}

table#bootlegTable th {
  background: var(--table-header-bg);
  color: var(--text-color);
  font-weight: bold;
  padding: 8px 6px 8px 6px;       /* gleiche Polsterung wie td */
  margin: 0;
  cursor: pointer;    /* direkt auf th setzen */
  user-select: none;  /* Text nicht markierbar */
}

#bootlegTable tbody tr:hover {
  background-color: var(--table-row-hover);
  position: relative;
  z-index: var(--z-normal) !important;
}

/* Text in Tabellenzellen bekommt höheren z-index als Hover-Hintergrund */
#bootlegTable tbody tr td {
  position: relative;
  z-index: var(--z-table-content);
}

/* Suchmarkierung liegt zwischen Hover-Hintergrund und Text */
#bootlegTable tbody tr:hover .search-highlight {
  z-index: var(--z-normal) !important;
}

#bootlegTable tbody tr.main-row.active {
  background-color: var(--table-row-active);
  position: relative;
  z-index: var(--z-normal); /* Aktive Zeile soll klickbar bleiben */
}

table#bootlegTable th:hover{
  background-color: var(--table-header-hover-bg);
}

table#bootlegTable th.sorted {
  background-color: var(--table-header-sorted-bg);
}

table#bootlegTable th.sorted:hover {
  background-color: var(--table-header-sorted-hover-bg);
}

/* Sortier-Pfeile */
table#bootlegTable th[data-sort] {
  position: relative;
}

/* Spaltenbreite änderbar machen */
table#bootlegTable th {
  position: relative;
}

table#bootlegTable th:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 0;
  right: -3px; /* Zentriert auf der Grenzlinie: -3px bei 6px Breite */
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: var(--z-normal);
  background: transparent;
}

table#bootlegTable th[data-sort]::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  opacity: 0;
}

table#bootlegTable th.sorted.asc::after {
  opacity: 1;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid var(--sort-arrow-primary);
}

table#bootlegTable th.sorted.desc::after {
  opacity: 1;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--sort-arrow-primary);
}

/* Sekundäre Sortierung - nur Pfeil, kein Hintergrund */
table#bootlegTable th.secondary-sorted {
  background: var(--table-header-bg); /* Normaler Hintergrund bleibt */
}

table#bootlegTable th.secondary-sorted:hover {
  background-color: var(--table-header-hover-bg); /* Normaler Hover bleibt */
}

table#bootlegTable th.secondary-sorted.asc::after {
  opacity: 1;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid var(--sort-arrow-secondary); /* Etwas heller als primäre Sortierung */
}

table#bootlegTable th.secondary-sorted.desc::after {
  opacity: 1;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--sort-arrow-secondary); /* Etwas heller als primäre Sortierung */
}

/* Suchtext-Hervorhebung */
.search-highlight {
  background-color: #ffff00; /* Textmarkerfarbe (gelb) */
  border-radius: 2px; /* Runde Ecken */
  position: relative;
  z-index: var(--z-background); /* Markierung liegt hinter allem Text */
  box-decoration-break: clone; /* Behebt Lücken bei mehrzeiligen Highlights */
}

/* Suchtext-Hervorhebung in Tabellenzellen */
#bootlegTable td .search-highlight {
  background-color: #ffff00 !important;
  z-index: var(--z-background); /* Normal hinter allem Text */
}

.detail-row td {
  background-color: var(--detail-row-bg);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr;
  gap: 20px;
  width: 100%;
}

/* Klickbare Timestamp-Links */
.timestamp-link {
  color: var(--button-bg);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.timestamp-link:hover {
  color: var(--button-hover);
}

.setlist-display .timestamp-link {
  font-weight: normal;
}

.info {
  margin-top: 0;
  word-break: break-word;
}



/* Make sure the parent of .detail-audio is positioned relative */
.detail-wrapper {
  position: relative;
  width: 100%;
}

/*Buttons in Tabelle in index.php*/
.index-edit-btn {
  width: 100%;
  padding: 6px 8px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.index-del-btn {
  width: 100%;
  padding: 6px 8px;
  background-color: var(--button-delete-bg);
  color: var(--button-text);
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  
}

.index-del-btn:hover {
  background-color: var(--button-delete-hover);
}

/* Styles für Passwort-Checkliste, eindeutig für account.php */
.bm-checklist {
    list-style: none;
    padding: 0;
    margin-top: 1em;
}
.bm-checklist li {
    color: #c00;
}
.bm-checklist li.bm-valid {
    color: #090;
}
.bm-specials {
    font-family: monospace;
}
.account-form button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Account-Form Eingabefelder untereinander */
.account-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.account-form input[type="password"] {
    width: 100%;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.account-form input[type="password"]:focus {
    outline: none;
    border-color: var(--border-hover);
    box-shadow: 0 0 5px rgba(74, 158, 255, 0.5);
}

.account-form button[type="submit"] {
    width: 90px;
    padding: 5px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 0px;
    align-self: flex-start;
}

/* Einheitliche Buttons für Home und Logout */
.bm-home-link,
.bm-logout-link {
    text-decoration: none;
    padding: 8px 12px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    border: none;
    box-shadow: none;
    line-height: normal;
    display: inline-block;
}

/* Kopfbereich für Account-Formular wie .header in index.php */
.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

/* Aktionen rechts wie in index.php */
.account-actions {
    display: flex;
    gap: 10px;
}

/* Überschrift wie in index.php */
.account-form h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    text-align: left;
}

/* Add-Formular Layout */
.add-form-container {
    max-width: 400px;
    margin: 40px auto;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px var(--shadow-color);
    padding: 32px 32px 24px 32px;
    position: relative;
}

.add-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 20px;
}

.add-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    text-align: left;
    color: var(--text-color);
}

.add-actions {
    display: flex;
    gap: 10px;
}

/* Formularfelder mit spezifischen Klassen */
.add-form .form-input,
.add-form .form-textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    background: var(--input-bg);
    color: var(--text-color);
    resize: vertical;
}

.add-form .form-file {
    padding: 0;
    background: none;
    border: none;
    margin-bottom: 18px;
}

.add-form .form-input:focus,
.add-form .form-textarea:focus {
    outline: none;
    border-color: var(--border-hover);
    background: var(--bg-color);
}

/* Add-Formular im Index-Layout, volle Breite, kein Rahmen, kein zentrierter Container */
.add-form.add-form-fullwidth {
    max-width: 600px;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 24px 0;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.add-form.add-form-fullwidth .form-input,
.add-form.add-form-fullwidth .form-textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: var(--input-bg);
    color: var(--text-color);
    resize: vertical;
}

.add-form.add-form-fullwidth .form-file {
    display: block;
    width: auto;
    padding: 8px 12px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 16px;
}

/* Optional: Label für schöneren Upload-Button */
.add-form.add-form-fullwidth .file-label {
    display: inline-block;
    width: 200px;
    padding: 10px 12px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 16px;
    text-align: center;
}

.add-form.add-form-fullwidth .file-label .form-file {
    display: none;
}

.add-submit-btn {
    width: 200px;
    padding: 10px 12px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    align-self: flex-start;
}

/* Topbar und Buttons wie in index.php */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 0; /* Kein Abstand zur Tabelle */
    flex-wrap: wrap;
    overflow: visible; /* Verhindert Abschneiden von Elementen */
    position: static;
    background-color: var(--topbar-bg);
    color: var(--text-color);
    z-index: var(--z-topbar);
    padding: 20px;
    flex-shrink: 0; /* Topbar behält ihre Größe */
    border-bottom: 1px solid var(--topbar-border);
}

/* Container für den scrollbaren Bereich */
.table-container {
    flex: 1;
    overflow-y: scroll; /* Scrollbar-Platz immer reserviert */
    overflow-x: hidden; /* Horizontale Scrollbar hier ausblenden */
    padding: 0;
    /* Scrollbar-Styling für Konsistenz */
    scrollbar-width: auto;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Webkit Scrollbar Styling für vertikale Scrollbar */
.table-container::-webkit-scrollbar {
    width: 16px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 0px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Separater Container für horizontale Scrollbar über der Kopfzeile */
.horizontal-scroll-container {
  background-color: white;
  overflow-x: scroll;
  overflow-y: hidden;
  height: 15px; /* Reduzierte Höhe */
  margin: 0 17px; /* Gleiche seitliche Abstände wie die Tabelle */
  flex-shrink: 0; /* Behält feste Höhe in Flexbox */
  z-index: var(--z-normal); /* Niedriger z-index damit Focus-Outlines sichtbar sind */
  /* Scrollbar-Styling für Konsistenz mit vertikaler Scrollbar */
  scrollbar-width: auto;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  /* Nicht fokussierbar via Tab-Navigation */
  outline: none !important;
  pointer-events: none; /* Verhindert Focus via Tab */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}/* Webkit Scrollbar Styling für horizontale Scrollbar */
.horizontal-scroll-container::-webkit-scrollbar {
    height: 16px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 0px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Dummy-Element um die Scrollbar zu erzwingen */
.horizontal-scroll-dummy {
  height: 1px;
  width: max-content;
  min-width: 100%;
  z-index: var(--z-normal); /* Niedriger z-index damit Focus-Outlines sichtbar sind */
  /* Nicht fokussierbar */
  outline: none !important;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Sicherstellen, dass horizontale Scrollbar-Elemente niemals Focus bekommen */
.horizontal-scroll-container:focus,
.horizontal-scroll-dummy:focus {
  outline: none !important;
  box-shadow: none !important;
}

.horizontal-scroll-container:focus-visible,
.horizontal-scroll-dummy:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}/* Mobile Responsive Anpassungen für Tabelle */
@media (max-width: 768px) {
  .table-container {
      padding: 0 10px; /* Weniger Padding auf mobilen Geräten */
      overflow-x: auto; /* Horizontales Scrollen erzwingen */
      -webkit-overflow-scrolling: touch; /* Smooth scrolling auf iOS */
  }
    
  table#bootlegTable {
      min-width: 600px; /* Mindestbreite der Tabelle */
      width: max-content; /* Tabelle nimmt benötigten Platz ein */
  }
    
  /* Verhindere das Zusammenstauchen der Spalten */
  table#bootlegTable th,
  table#bootlegTable td {
      white-space: nowrap; /* Verhindert Zeilenumbrüche in Zellen */
      min-width: 80px; /* Mindestbreite für alle Spalten */
  }
    
  /* Spezifische Mindestbreiten für verschiedene Spalten */
  table#bootlegTable th:first-child,
  table#bootlegTable td:first-child {
    min-width: 80px; /* DATE-Spalte: reduziert für mobile Geräte */
    width: auto; /* Automatische Breite auch auf mobilen Geräten */
  }
    
  table#bootlegTable th:nth-child(2),
  table#bootlegTable td:nth-child(2) {
      min-width: 150px; /* TITLE-Spalte */
  }
 
  table#bootlegTable th:last-child,
  table#bootlegTable td:last-child {
      min-width: 120px; /* UPLOADER-Spalte */
  }
  
  /* Topbar Anpassungen für mobile Geräte */
  .topbar {
    padding: 15px 10px;
    flex-wrap: wrap;
  }
    
  .topbar .title {
    font-size: 24px;
  }
    
  .topbar .search-container {
    order: 3; /* Suchfeld in neue Zeile */
    width: 100%;
    margin-top: 10px;
  }
    
  .topbar .user-info {
    font-size: 12px;
    margin: 0;
  }
    
  .topbar .actions {
    gap: 8px;
  }
}

.topbar .title {
    font-size: 28px;
    font-weight: bold;
}

.topbar .search-field {
    width: 100%;
    padding: 8px 12px; /* Zurück zum ursprünglichen Padding */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: var(--input-bg);
    color: var(--text-color);
}

.topbar .search-backspace {
  position: absolute !important; /* Wichtiger als der globale focus Style */
  right: 45px !important; /* Matching the earlier rule */
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #bbb !important; /* Helleres Grau */
  cursor: pointer !important;
  padding: 0 !important; /* Kein Padding für saubere Kanten */
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important; /* Kein Rahmen */
  display: none !important; /* Hidden by default, shown via JavaScript */
  align-items: center !important; /* Vertical centering with flex */
  justify-content: center !important; /* Horizontal centering with flex */
  pointer-events: auto !important; /* Icon ist klickbar */
  z-index: 15 !important; /* Höher als der globale focus z-index */
  width: 20px !important;
  height: 20px !important;
  line-height: 1 !important;
}

/* Show backspace when search field has content */
.topbar .search-backspace.show {
  display: flex !important;
}

/* SVG innerhalb der Buttons soll die richtige Größe haben */
.topbar .search-backspace svg {
  width: 18px !important;
  height: 14px !important;
  display: block !important;
}

.topbar .search-loupe svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

/* Filter Button */
.filter-btn {
  position: relative !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin-left: 10px !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #888 !important;
}

.filter-btn:hover {
  color: #666 !important;
}

.filter-btn svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

.topbar .search-backspace:hover {
    color: #b9b9b9; /* Helleres Hover-Grau */
}

.topbar .search-field:focus {
    outline: none;
    border-color: var(--button-bg);
}

.topbar .actions {
    display: flex;
    gap: 10px;
}

.topbar .account-btn,
.topbar .actions a {
    text-decoration: none;
    padding: 8px 12px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    border: none;
    box-shadow: none;
    line-height: normal;
    display: inline-block;
}

.topbar .user-info {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.detail-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.lineup-setlist .lineup,
.lineup-setlist .setlist {
  word-break: break-word;
}

.lineup-setlist .info {
  word-break: break-word;
  grid-column: 1 / span 2;   /* Info nimmt beide Spalten ein */
  /*grid-row: 2 / 3;*/
  margin-top: 0;
}

.lineup-setlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px 24px;
  width: 100%;
}

.lineup-setlist .lineup {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.lineup-setlist .setlist {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

/* Benutzer-Tabelle wie Bootleg-Tabelle */
table#userTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 15px;
}
table#userTable th,
table#userTable td {
  border: 1px solid var(--table-border);
  padding: 6px;
  text-align: left;
  vertical-align: top;
  margin: 0;
  font-size: 15px;
  color: var(--text-color);
  background-color: var(--bg-color);
}
table#userTable th {
  background: var(--table-header-bg);
  font-weight: bold;
  /* kein Cursor, keine Sortierung */
}
table#userTable tbody tr:hover {
  background-color: var(--table-row-hover);
}
table a {
  text-decoration: none;
}

/* Dropdown-Styling für Dark Mode */
select {
  background-color: var(--input-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 8px;
}

select:focus {
  outline: none;
  border-color: var(--border-hover);
}

/* Spezielle Styles für User-Tabelle Dropdowns */
table#userTable select {
  background-color: var(--input-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
}

table#userTable select:focus {
  outline: none;
  border-color: var(--border-hover);
}

.user-add-link {
  text-decoration: none;
  padding: 8px 12px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border-radius: 4px;
  font-size: 14px;
  font-weight: normal;
  border: none;
  box-shadow: none;
  line-height: normal;
  display: inline-block;
  margin-bottom: 18px;
}

/* Filter Bar */
.filter-bar {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 100;
  position: relative;
}

.filter-bar-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 15px 20px;
  flex-wrap: wrap;
}

.filter-bar .filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: auto;
}

.filter-bar .filter-section h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-bar .filter-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-bar .filter-row label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-color);
  white-space: nowrap;
}

.filter-bar .filter-date {
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 14px;
  width: auto;
  min-width: fit-content;
}

.filter-bar .filter-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  align-items: flex-end;
  margin-left: auto;
}

.filter-bar .filter-reset-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-color);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-bar .filter-reset-btn:hover {
  background: var(--table-row-hover);
}

/* === DROPDOWN STYLES === */
.filter-bar .filter-dropdown {
  position: relative;
  width: auto;
}

.filter-bar .filter-dropdown-btn {
  width: auto;
  min-width: fit-content;
  padding: 8px 12px;
  padding-right: 32px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-color);
  cursor: pointer;
  position: relative;
  text-align: left;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  white-space: nowrap;
  max-width: 300px; /* Verhindert übermäßig breite Buttons */
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-bar .filter-dropdown-btn:hover {
  background: var(--table-row-hover);
}

/* Dropdown Arrow */
.filter-bar .filter-dropdown-btn::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--sort-arrow-primary);
  pointer-events: none;
}

/* Arrow when dropdown is open */
.filter-bar .filter-dropdown-btn.open::after {
  border-top: none;
  border-bottom: 6px solid var(--sort-arrow-primary);
}

/* Dropdown List */
.filter-bar .filter-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: var(--z-dropdown);
  max-height: 250px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
}

.filter-bar .filter-dropdown-list.show {
  display: block;
}

/* Dropdown Items */
.filter-bar .filter-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-color);
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.filter-bar .filter-dropdown-item:last-child {
  border-bottom: none;
}

.filter-bar .filter-dropdown-item:hover {
  background: var(--table-row-hover);
}

.filter-bar .filter-dropdown-item input[type="checkbox"] {
  margin: 0;
  pointer-events: none;
}

.filter-bar .filter-dropdown-item label {
  cursor: pointer;
  pointer-events: none;
}

/* Spezielle Focus-Styles für Dropdown-Buttons - höhere z-index als Dropdown */
:root:not([data-theme="high-contrast"]) .filter-bar .filter-dropdown-btn:focus-visible {
  outline: 2px solid var(--border-hover) !important;
  outline-offset: 2px;
  position: relative !important;
  z-index: var(--z-dropdown-focus) !important;
  border-color: var(--border-color) !important;
  box-shadow: none !important;
}

/* High Contrast Focus für Dropdown-Buttons */
[data-theme="high-contrast"] .filter-bar .filter-dropdown-btn:focus-visible {
  outline: 2px solid #ffff00 !important;
  outline-offset: 2px;
  position: relative !important;
  z-index: var(--z-dropdown-focus) !important;
  box-shadow: 0 0 5px #ffff00 !important;
  border-color: #ffff00 !important;
}

/* Filter Bar Media Query */
@media (max-width: 768px) {
  .filter-bar-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .filter-bar .filter-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}