
/* HubPay Visual Contrast & Emerald Theme System */
:root {
  --heroui-primary: 160 84% 39% !important;
  --primary: 160 84% 39% !important;
  --color-primary: #10B981 !important;
}

/* 1. Header do Menu Lateral com Alto Contraste */
aside .max-w-56 {
  background: #FFFFFF !important;
  border-radius: 1rem 1rem 0 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

/* 2. O botão de usuário/ghost - trocar nome interativo */
button[class*="user"], div[class*="user"], #user-name-display {
  cursor: pointer !important;
}

/* 3. Botões de Saque PIX, Novo Produto e Filtros */
.btn-hubpay-action {
  transition: all 0.2s ease-in-out;
}
.btn-hubpay-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

/* 4. Cores de cards e tabelas no Verde Esmeralda */
.text-success, [class*="text-success"] {
  color: #10B981 !important;
}
.bg-success, [class*="bg-success"] {
  background-color: #10B981 !important;
}

/* 5. Tooltips e Toasts */
#hubpay-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #064E3B;
  color: #ECFDF5;
  border: 1px solid #10B981;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}



/* ============================================================
   SIDEBAR PERFECT SCROLLING & ACCORDION BEHAVIOR
   ============================================================ */
aside {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 14rem !important; /* 224px (w-56) */
  z-index: 100 !important;
}

aside > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

aside > div > div:nth-child(2) {
  flex: 1 1 0% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: #CBD5E1 transparent !important;
}

aside > div > div:nth-child(2)::-webkit-scrollbar {
  width: 4px !important;
}

aside > div > div:nth-child(2)::-webkit-scrollbar-thumb {
  background-color: #CBD5E1 !important;
  border-radius: 4px !important;
}

/* Accordion inicial fechado por padrao para nao poluir a tela */
.hubpay-submenu-container {
  display: none;
}

.hubpay-submenu-container.is-open {
  display: block !important;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
