/* =========================================================
   Core / Navigation
   Dropdowns hierárquicos colapsáveis
   ========================================================= */

.app-dropdown-panel {
  min-width: 300px;
  max-width: 340px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.app-dropdown-section-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.5rem;
  padding-bottom: 0.35rem;
}

.app-dropdown-group + .app-dropdown-group {
  margin-top: 0.15rem;
}

.app-dropdown-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-dropdown-group-body {
  padding: 0.2rem 0 0.35rem 0;
}

.app-dropdown-subitem {
  padding-left: 2.4rem;
}

.app-dropdown-chevron,
.app-mobile-chevron {
  transition: transform 0.2s ease;
  font-size: 0.85rem;
}

.app-dropdown-group-toggle[aria-expanded="true"] .app-dropdown-chevron,
.app-mobile-group-toggle[aria-expanded="true"] .app-mobile-chevron {
  transform: rotate(180deg);
}

.app-mobile-submenu-title {
  letter-spacing: 0.04em;
  font-weight: 700;
}

.app-mobile-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-mobile-subitem {
  padding-left: 2.25rem;
}

/* =========================================================
   Estados de navegação (hover, active, group)
   ========================================================= */

/* Hover padrão */
.app-dropdown-menu .dropdown-item:hover,
.app-mobile-subitem:hover,
.app-mobile-group-toggle:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Item ativo (página atual) */
.app-dropdown-menu .dropdown-item.active,
.app-mobile-subitem.active {
  background-color: #e0edff;
  color: #0b3d91;
  font-weight: 600;
  border-radius: 0.5rem;
}

/* Evitar conflito de cor (bootstrap default) */
.app-dropdown-menu .dropdown-item.active,
.app-dropdown-menu .dropdown-item:active {
  background-color: #e0edff !important;
  color: #0b3d91 !important;
}

/* Grupo aberto (não competir com ativo) */
.app-dropdown-group-toggle[aria-expanded="true"] {
  background-color: #f8fafc;
  color: #0f172a;
}

/* Subitens */
.app-dropdown-subitem {
  padding-left: 2.4rem;
  font-size: 0.92rem;
}

/* Mobile ativo */
.app-mobile-subitem.active {
  background-color: #e0edff;
  color: #0b3d91;
}

/* Chevron mais suave */
.app-dropdown-chevron,
.app-mobile-chevron {
  color: #94a3b8;
}

.gcli-header-refresh-btn {
  border: 0;
  background: transparent;
  color: inherit;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gcli-header-refresh-btn i {
  font-size: 1.25rem;
}

.gcli-header-refresh-btn:active {
  transform: scale(.94);
}

.gcli-header-refresh-btn.loading i {
  animation: gcli-refresh-spin .75s linear infinite;
}

@keyframes gcli-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gcli-refresh-btn {
    width: 36px;
    height: 36px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}

.gcli-refresh-btn.loading i {
    animation: gcli-refresh-spin .8s linear infinite;
}

@keyframes gcli-refresh-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}