/* Header Styles */
header.backend-header {
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: white;
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  height: 60px;
  background: #660606;
  z-index: 1400;
  transition: left 0.3s ease;
}
.backend-sidebar.collapsed + .page-wrapper header.backend-header {
  left: 60px;
}

.sidebar-toggle {
  position: relative;
  cursor: pointer;
  font-size: 20px;
  margin-right: 15px;
  user-select: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  margin-left: -10px;
}

.sidebar-tooltip {
  position: absolute;
  top: 120%;
  left: 0;
  transform: none;
  background: #222;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.sidebar-toggle:hover .sidebar-tooltip {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-toggle:hover {
  box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.3);
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 300px;
  margin-right: auto;
}
.header-search input[type="text"] {
  width: 100%;
  padding: 8px 50px 8px 12px;
  border-radius: 3px;
  border: none;
  font-size: 14px;
}
.header-search input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #bdbdbd; /* z.B. grauer Schatten als Fokus */
}
.header-search i.fas.fa-magnifying-glass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #660606;
  pointer-events: none;
  font-size: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 15px;
  justify-content: flex-end;
  min-width: 180px;
}

.icon-container {
  position: relative;
  cursor: pointer;
  font-size: 20px;
  color: white;
}

.tooltip {
  position: absolute;
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}
.tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #222 transparent;
}
.icon-container:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
}
.icon-container .dropdown-menu {
  display: none;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #660606;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  min-width: 150px;
  z-index: 1500;
  flex-direction: column;
  padding: 5px 0;
}
.icon-container .dropdown-menu a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  display: block;
}
.icon-container .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}
.icon-container:hover .dropdown-menu {
  display: flex;
}
.badge {
  position: absolute;
  top: -5px;
  right: -6px;
  background: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
