.theme-switcher {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #f0f1f3;
  color: #70757d;
}

.theme-switcher-option {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.theme-switcher-option:hover { color: #263238; }
.theme-switcher-option:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }

html[data-theme-preference="light"] .theme-switcher-option[data-theme-option="light"],
html[data-theme-preference="dark"] .theme-switcher-option[data-theme-option="dark"],
html[data-theme-preference="system"] .theme-switcher-option[data-theme-option="system"] {
  background: #fff;
  color: #30343b;
  box-shadow: 0 1px 4px rgb(20 31 42 / 10%);
}

html.dark .theme-switcher { background: #252525; color: #a6a6a6; }
html.dark .theme-switcher-option:hover { color: #f5f5f5; }
html.dark[data-theme-preference="light"] .theme-switcher-option[data-theme-option="light"],
html.dark[data-theme-preference="dark"] .theme-switcher-option[data-theme-option="dark"],
html.dark[data-theme-preference="system"] .theme-switcher-option[data-theme-option="system"] {
  background: #424242;
  color: #fff;
  box-shadow: none;
}

@media (max-width: 380px) {
  .app-navbar > div { gap: 4px; padding-inline: 6px; }
  .app-navbar .navbar-quick-access button { width: 34px; height: 34px; }
  .app-navbar .theme-switcher { padding: 2px; gap: 0; }
  .app-navbar .theme-switcher-option { width: 28px; height: 28px; }
  .app-navbar .search-palette-trigger,
  .app-navbar .navbar-notifications-trigger { width: 34px; height: 34px; }
}

/* Accesos Rápidos Mega Menu */
.navbar-quick-access-menu {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  top: 72px;
  z-index: 9999;
  width: auto;
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  border-radius: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

@media (min-width: 640px) {
  .navbar-quick-access-menu {
    position: absolute;
    left: 0;
    right: auto;
    top: 100%;
    margin-top: 0.625rem;
    width: 580px;
    max-width: calc(100vw - 2rem);
    border-radius: 1.75rem;
  }
}

html.dark .navbar-quick-access-menu {
  background-color: var(--app-surface, #111) !important;
  border-color: var(--app-border, #343434) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

