/* Tipografia global: Inter (moderna, clean e legível) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
  color: #fbfaff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Estilos base para tabelas */
table {
  margin: 1rem;
  width: 100%;
  max-width: 1130px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.5rem;
  text-align: center;
  border: none;
}

/* Estilos base para botões */
button {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-family: inherit;
}

/* Classes utilitárias */
.hidden {
  opacity: 0;
  visibility: hidden;
}

.visible {
  opacity: 1;
  visibility: visible;
}

/* Loading do menu dinâmico */
.menu-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.menu-loading .loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.menu-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.menu-loading p {
  color: #fbfaff;
  font-size: 1rem;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Menu Styles */
.hierarchical-menu {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.card {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
  border-bottom: none !important;
  font-weight: 600;
}

.list-group-item {
  background: rgba(255, 255, 255, 0.05) !important;
  border: none !important;
  color: #fbfaff !important;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(5px);
}

.accordion-item {
  background: transparent !important;
  border: none !important;
}

.accordion-button {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fbfaff !important;
  border: none !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fbfaff !important;
}

.accordion-button::after {
  filter: invert(1);
}

/* Menu Fallback */
.menu-fallback {
  padding: 1rem;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.2) !important;
  border: 1px solid rgba(255, 193, 7, 0.3) !important;
  color: #fbfaff !important;
}