/* ------------------- */
/*   CSS VARIABLES     */
/* ------------------- */
:root {
  --bg: #101010;
  --text: #eee;
  --sidebar-bg: rgba(30, 30, 30, 0.65);
  --sidebar-text: #ddd;
  --link-hover: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.08);
  --badge-bg: rgba(255, 255, 255, 0.1);
  --button-color: #aaa;
  --button-hover: #fff;
  --shadow:  #1a1a1a;
  --highlight: #D6A904;
  --reverseHighlight: #59808C;
  --pdf-highlight-blue: #59808C;
  --pdf-brand-dark: #242424;
  --pdf-brand-light: #EEF4F5;
  --pdf-grey-line: #BDBDBD;
  --pdf-grey-bg: #F7F6F4;
  --pdf-grey-label: #737373;
  --pdf-required: #c0392b;
  --pdf-cover-sub: #F0F4F5;
  --process: #333333;
  --success: #284e20;
  --error: #461015;

  --sidebar-width: 260px;

}

[data-theme="light"] {
  --bg: #ffffff;
  --text: #111;
  --sidebar-bg: rgba(255, 255, 255, 0.8);
  --sidebar-text: #222;
  --link-hover: rgba(0, 0, 0, 0.05);
  --border-color: rgba(0, 0, 0, 0.08);
  --badge-bg: rgba(0, 0, 0, 0.1);
  --button-color: #444;
  --button-hover: #000;
  --shadow:  rgba(0, 0, 0, 0.08);
  --highlight: #59808C;
  --reverseHighlight: #D6A904;
  --pdf-highlight-blue: #59808C;
  --pdf-brand-dark: #242424;
  --pdf-brand-light: #EEF4F5;
  --pdf-grey-line: #BDBDBD;
  --pdf-grey-bg: #F7F6F4;
  --pdf-grey-label: #737373;
  --pdf-required: #c0392b;
  --pdf-cover-sub: #F0F4F5;
  --process: #b3b3b3;
  --success: #affb9f;
  --error: #fb959f;

  --sidebar-width: 260px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101010;
    --text: #eee;
    --sidebar-bg: rgba(30, 30, 30, 0.65);
    --sidebar-text: #ddd;
    --link-hover: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.08);
    --badge-bg: rgba(255, 255, 255, 0.1);
    --button-color: #aaa;
    --button-hover: #fff;
    --shadow:  #1a1a1a;
    --highlight: #D6A904;
    --reverseHighlight: #59808C;
    --pdf-highlight-blue: #59808C;
    --pdf-brand-dark: #242424;
    --pdf-brand-light: #EEF4F5;
    --pdf-grey-line: #BDBDBD;
    --pdf-grey-bg: #F7F6F4;
    --pdf-grey-label: #737373;
    --pdf-required: #c0392b;
    --pdf-cover-sub: #F0F4F5;
    --process: #333333;
    --success: #284e20;
    --error: #461015;

    --sidebar-width: 260px;

  }
}

/* ------------------- */
/*   GLOBAL RESET      */
/* ------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  height: 100vh;
  /* Updated standard scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

/* ------------------- */
/*   CUSTOM SCROLLBAR  */
/* ------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--highlight);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

#logo{
  color: var(--text);
  margin: 15px;
  height: 100%;           /* oder z.B. 100px, je nach gewünschter Höhe */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#logo img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  display: block;
}

.sidebar-header {
  height: 100px; 
  margin-bottom: 50px;
}
/* ------------------- */
/*   SIDEBAR STYLING   */
/* ------------------- */
.active {
    background-color: var(--badge-bg);
    color: var(--highlight) !important; /* Text color matches highlight */
    border-radius: 12px;  
    /* Modern shadow instead of heavy borders */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.active i{
  color: var(--highlight);
  filter: drop-shadow(0 0 5px var(--highlight)); /* Glowing icon */
}

.disabled {
    color: var(--bg);
}

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.05); /* Softer, more diffuse shadow */
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  padding-right: 1rem; /* Adjustment for scrollbar aesthetics if needed */
  border-right: 1px solid var(--border-color);
  transition: width 0.3s ease, padding 0.3s ease;
  z-index: 10;
}


.sidebar-nav {
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav .resources-label {
  margin: 2rem 0 0.8rem;
  padding-left: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sidebar-text);
  opacity: 0.5;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
}

.sidebar-nav a:hover {
  background-color: var(--link-hover);
  color: var(--text);
  border-color: rgba(255,255,255,0.05);
  transform: translateX(5px);
}

.sidebar-nav .icon {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.sidebar-nav .badge {
  /* background-color: var(--badge-bg); */
  padding: 0.15rem 0.6rem;
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.external {
  margin-left: auto;
  opacity: 0.6;
}


/* ------------------- */
/*   THEME SWITCHER    */
/* ------------------- */
.theme-switcher {
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.theme-switcher .theme-btn {
  background: none;
  border: none;
  color: var(--button-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
}

.theme-switcher .theme-btn.active {
  color: var(--text) !important;
}

/* ------------------- */
/*   input-container   */
/* ------------------- */
.input-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  /* margin: 1.5rem 0; */
  background: var(--sidebar-bg);
  border-radius: 8px;
  /* padding: 0.5rem 0.75rem; */
  box-shadow: var(--shadow);
  list-style: none;
  max-width: 100%;
}

.input-container input[type="text"],
.input-container input[type="file"],
.input-container input[type="password"] {
  background: transparent;
  border: none;
  color: var(--sidebar-text);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  outline: none;
}

.input-container input[type="text"]::placeholder,
.input-container input[type="file"]::placeholder,
.input-container input[type="password"] {
  color: var(--sidebar-text);
  opacity: 0.6;
}

.input-container button {
  background: none;
  border: none;
  color: var(--button-color);
  font-size: 1rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  width: 100%;
}

.input-container button:hover,
.input-container button.active {
  background-color: var(--highlight);
  color: var(--bg);
}

.input-container form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* Userbox  */
.sidebar-userbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 24px 0 0 0;
  min-height: 70px;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.sidebar-userbox:hover {
  background: var(--badge-bg);
  border-color: var(--highlight);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Layout-Umschaltung im expanded-Zustand */
.sidebar-userbox.expanded {
  flex-direction: column;
  align-items: stretch;
  min-height: 140px;
  background: var(--badge-bg);
  box-shadow: 0 4px 16px var(--shadow);
  padding-bottom: 32px;
}

/* Container für Logo, Info, Logout-Button als Zeile */
.sidebar-userbox-main {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

/* Im expanded-Zustand oben ausrichten */
.sidebar-userbox.expanded .sidebar-userbox-main {
  align-items: flex-start;
}

.sidebar-userbox-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid var(--text);
}

.sidebar-userbox-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.sidebar-userbox-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.sidebar-userbox-user {
  font-weight: bold;
  font-size: 1.08em;
  color: var(--text);
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar-userbox-role {
  font-size: 0.92em;
  color: var(--text);
  opacity: 0.8;
  margin-top: 2px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar-userbox-logout {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--button-color);
  font-size: 1.3em;
  cursor: pointer;
}

.sidebar-userbox-logout:hover {
  color: var(--highlight);
}

/* Dropdown für Info/Password */
.userbox-dropdown {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 64px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 10;
}

.sidebar-userbox.expanded .userbox-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.userbox-dropdown button {
  background: var(--sidebar-bg);
  color: var(--text);
  border: 1px solid var(--highlight);
  border-radius: 8px;
  padding: 6px 0;
  cursor: pointer;
}

.userbox-dropdown button:hover {
  background: var(--highlight);
  color: var(--sidebar-bg);
}

/* ------------------- */
/*   Spinner      */
/* ------------------- */		
#loadingSpinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#loadingSpinner h2 {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

#loadingSpinner .spinner {
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid #D6A904;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* ------------------- */
/*       Basics        */
/* ------------------- */
.button {
  background: var(--bg);
  border: var(--border-color);
  border-radius: 8px;
  color: var(--button-color);
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  /* border-radius: 8px; */
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  box-shadow: var(--shadow);
  width: 100%;
}

.button:hover {
  background-color: var(--highlight);
  color: var(--bg);
}

.button:disabled {
  background: var(--bg);
  border: var(--border-color);
  color: var(--button-color);
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}


.cornerbutton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--bg);
  color: var(--text);
  border: 2px solid var(--highlight);
  border-radius: 30px;
  height: 48px;
  width: 48px;
  padding: 0 16px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease, background-color 0.3s ease, transform 0.2s;
  overflow: hidden;
  white-space: nowrap;
  z-index: 1000;
}

.cornerbutton .text {
  opacity: 0;
  width: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cornerbutton:hover {
  width: 260px;
  background-color: var(--highlight);
  color: var(--bg);
  gap: 8px;
}

.cornerbutton:hover .text {
  opacity: 1;
  width: auto;
}

.cornerbutton .sync-timestamp {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 4px;
  color: inherit;
}


/* ------------------- */
/*   MAIN CONTENT      */
/* ------------------- */
.content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background: rgba(77, 77, 77, 0.05);
  color: var(--text);
}

.tool {
  flex: auto;
  border: solid 1px var(--highlight);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 20px;
}

/* EXTRAS */

.listElementContainer {
  width: 90%;
  border: 1px solid var(--border-color);
  margin: auto;
  padding: 10px;
  border-radius: 8px;
  background-color: var(--sidebar-bg);
}

.select{
  background: transparent;
  border: 1px solid var(--text);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  outline: none;
  color: var(--text)
}

.select option{
  background-color: var(--sidebar-bg);
  color: var(--text);
}

.select :hover, .select:focus{
  border: 1px solid var(--highlight);
  background-color: var(--sidebar-bg);
}


/* Mobile menu button: standardmäßig verstecken; sichtbar nur im Media-Query */
.mobile-menu-btn {
  display: none;
}
/* ...existing code... */
@media (max-width: 768px) {
  /* Body layout für mobile */
  body {
    height: 100%;
    min-height: 100vh;
  }

  /* Sidebar als off-canvas (vollbild wenn sichtbar) */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(18, 18, 18, 0.96);
    color: var(--sidebar-text);
    border-right: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
    transition: left 0.25s ease;
    z-index: 2000;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
  }

  [data-theme="light"] .sidebar {
    background-color: rgba(255, 255, 255, 0.97);
  }

  /* Wenn sichtbar: vollflächig einblenden */
  .sidebar.visible {
    left: 0;
    /* force above backdrop */
    z-index: 2001;
  }

  /* Einfacher halbtransparenter Hintergrund hinter der Sidebar */
  .mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.62);
    z-index: 1800;
    display: none;
  }
  .mobile-backdrop.visible {
    display: block;
  }

  /* Mobiler Menü-Button (ober links) */
  .mobile-menu-btn {
    display: flex;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    background: var(--sidebar-bg);
    color: var(--text);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.24);
    gap: 8px;
    font-size: 1.1rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-menu-btn .label {
    display: none; /* optional: nur Icon anzeigen */
  }

  /* Content-Top-Padding, damit Button nicht überlappt (falls Header vorhanden) */
  .content {
    padding: 56px 1rem 2rem 1rem;
    min-height: 100vh;
  }

  /* Sidebar Header für Mobile optimieren */
  .sidebar-header {
    height: 80px;
    margin-bottom: 30px;
  }

  #logo img {
    max-width: 80px;
    max-height: 80px;
  }

  /* User Box auf Mobile */
  .sidebar-userbox {
    margin-top: auto;
    flex-shrink: 0;
  }

  /* Corner Button für Mobile anpassen */
  .cornerbutton {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  }

  /* Tool Styling für Mobile */
  .tool {
    margin: 15px 0;
    padding: 15px;
  }

  /* File Grid auf Mobile */
  .file-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Content-Box für Mobile */
  .content-box {
    width: 95%;
    padding: 15px;
    height: auto;
  }

  .listElementContainer {
    width: 95%;
    margin: 15px auto;
    padding: 12px;
  }
}

/* Phones im Hochformat und kleinere Tablets (480px und darunter) */
@media (max-width: 480px) {
  body {
    height: 100%;
  }

  .content {
    padding: 50px 0.75rem 1.5rem 0.75rem;
  }

  .sidebar {
    padding: 1rem;
  }

  .sidebar-header {
    height: 70px;
    margin-bottom: 20px;
  }

  #logo img {
    max-width: 60px;
    max-height: 60px;
  }

  .sidebar-nav a {
    font-size: 0.9rem;
    padding: 0.4rem;
  }

  .sidebar-nav .icon {
    margin-right: 0.5rem;
    font-size: 1rem;
  }

  .input-container {
    gap: 0.4rem;
  }

  .input-container input[type="text"],
  .input-container input[type="password"],
  .input-container input[type="email"],
  .input-container input[type="file"],
  .input-container input[type="date"] {
    font-size: 16px; /* Verhindert automatisches Zoomen auf iOS */
    padding: 0.6rem 0.5rem;
  }

  .input-container button {
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
  }

  .button {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .cornerbutton {
    width: 50px;
    height: 50px;
    bottom: 12px;
    right: 12px;
    border-radius: 12px;
  }

  .tool {
    margin: 12px 0;
    padding: 12px;
    border-radius: 6px;
  }

  .tool details summary {
    font-size: 1rem;
  }

  .file-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .content-box {
    width: 96%;
    padding: 12px;
  }

  .content-box h1 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .content-box h2 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
  }

  .content-box p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .listElementContainer {
    width: 97%;
    padding: 10px;
  }

  .select {
    font-size: 16px; /* Verhindert Zoom auf iOS */
    padding: 0.6rem 0.5rem;
  }
}

/* Extra Small Devices (360px und darunter) */
@media (max-width: 360px) {
  .sidebar-nav a {
    font-size: 0.85rem;
    padding: 0.3rem;
  }

  .sidebar-nav .nav-label {
    display: none;
  }

  .sidebar-nav .icon {
    font-size: 1rem;
    margin-right: 0;
  }

  .input-container {
    gap: 0.3rem;
  }

  .input-container input,
  .input-container button {
    padding: 0.5rem;
    font-size: 14px;
  }

  .button {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .cornerbutton {
    width: 48px;
    height: 48px;
    bottom: 10px;
    right: 10px;
    border-radius: 12px;
  }

  .tool {
    margin: 10px 0;
    padding: 10px;
  }

  .content-box {
    width: 98%;
    padding: 10px;
  }

  .content-box h1 {
    font-size: 1.1rem;
  }

  .content-box h2 {
    font-size: 1rem;
  }

  .content-box p {
    font-size: 0.9rem;
  }
}


.content-box {
    width: 90%;
    height: 90%;
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    margin: auto;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.content-box-element {
    width: 100%;
    height: auto;
    background-color: var(--bg);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    margin: auto;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    text-align: center ;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Spalten */
  gap: 10px;
}

/* Responsive grid für verschiedene Bildschirmgrößen */
@media (max-width: 1200px) {
  .file-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .file-grid {
    grid-template-columns: 1fr;
  }
}

 



/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.search-modal {
    background: var(--bg);
    width: 600px;
    max-width: 90vw;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.search-icon {
    font-size: 1.2rem;
    color: var(--button-color);
    margin-right: 12px;
}

#globalSearchInput {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text);
    outline: none;
}

.close-search {
    background: transparent;
    border: none;
    color: var(--button-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.close-search:hover {
    color: var(--highlight);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

.search-item {
    padding: 10px 16px;
    cursor: pointer;
    border-left: 3px solid transparent;
    display: flex;
    flex-direction: column;
}

.search-item:hover, .search-item.selected {
    background: var(--link-hover);
    border-left-color: var(--highlight);
}

.search-item-title {
    font-weight: bold;
    color: var(--text);
    font-size: 14px;
}

.search-item-subtitle {
    font-size: 12px;
    color: var(--sidebar-text);
    opacity: 0.8;
}

.search-item-category {
    font-size: 10px;
    color: var(--highlight);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.search-footer {
    padding: 8px 16px;
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--sidebar-text);
}

kbd {
    background: var(--badge-bg);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

