/* Menu lateral (drawer) do app Dumont */

/* Overlay escuro atrás do drawer */
.app-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.app-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Drawer lateral */
.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #1b96d1;
  z-index: 1999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

.app-drawer.ios-app {
  padding-bottom: env(safe-area-inset-bottom);
}

.app-drawer.ios-app .app-drawer-header {
  padding-top: calc(env(safe-area-inset-top));
}

.app-drawer.open {
  transform: translateX(0);
}

/* Header do drawer com logo */
.app-drawer-header {
  background: #5ccfd3;
  padding: 32px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-drawer-logo {
  width: 140px;
  height: auto;
}

/* Menu items */
.app-drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-drawer-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #1b96d1;
}

.app-drawer-item.active {
  background: #0051a0;
}

.app-drawer-link {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, color 0.2s ease;
}

.app-drawer-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.app-drawer-item.active .app-drawer-link {
  color: #ffffff;
}

.app-drawer-item.active .app-drawer-icon {
  color: #5ccfd3;
}

.app-drawer-icon {
  width: 24px;
  height: 24px;
  margin-right: 16px;
  flex-shrink: 0;
}

.app-drawer-link span {
  flex: 1;
}

/* Esconder drawer quando não for versão app */
body:not(.app-layout) .app-drawer,
body:not(.app-layout) .app-drawer-overlay {
  display: none;
}

/* Prevenir scroll do body quando drawer está aberto */
body.drawer-open {
  overflow: hidden;
}

/* Ajustes para devices diferentes */
@media (max-width: 320px) {
  .app-drawer {
    width: 260px;
  }
}

/*Scrollbar customizado para o drawer */
.app-drawer::-webkit-scrollbar {
  width: 6px;
}

.app-drawer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.app-drawer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.app-drawer::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}