@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --primary-blue: #2563eb;
  --primary-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
  --emerald-gradient: linear-gradient(135deg, #10b981, #059669);
  --purple-gradient: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --amber-gradient: linear-gradient(135deg, #f59e0b, #d97706);
  --rose-gradient: linear-gradient(135deg, #f43f5e, #e11d48);
}

body, html, button, input, select, textarea {
  font-family: 'Montserrat', sans-serif !important;
  background-color: #f8fafc;
  color: #0f172a;
}

/* OCULTAR BARRAS DE ROLAGEM VISÍVEIS (HIDE SCROLLBARS COMPLETELY) */
.no-scrollbar {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
  overflow-x: hidden !important;
}

.no-scrollbar::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera */
  width: 0 !important;
  height: 0 !important;
}

/* CUSTOM SCROLLBAR FOR MAIN CONTENT ONLY */
main::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
main::-webkit-scrollbar-track {
  background: #f1f5f9;
}
main::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
main::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* SIDEBAR & DUAL RAIL ICON CONTRAST RULES */
.icon-rail-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  transition: all 0.2s ease;
}

.icon-rail-btn svg,
.icon-rail-btn i {
  stroke: #64748b !important;
  color: #64748b !important;
}

.icon-rail-btn:hover {
  background-color: #f1f5f9 !important;
}

.icon-rail-btn:hover svg,
.icon-rail-btn:hover i {
  stroke: #2563eb !important;
  color: #2563eb !important;
}

.icon-rail-btn.active {
  background-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.icon-rail-btn.active svg,
.icon-rail-btn.active i {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.sub-menu-item {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s ease;
}

.sub-menu-item svg,
.sub-menu-item i {
  stroke: #64748b !important;
}

.sub-menu-item:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

.sub-menu-item:hover svg,
.sub-menu-item:hover i {
  stroke: #1e293b !important;
}

.sub-menu-item.active {
  background-color: #eff6ff !important;
  color: #2563eb !important;
  font-weight: 600 !important;
}

.sub-menu-item.active svg,
.sub-menu-item.active i {
  stroke: #2563eb !important;
}

/* TAB VIEWS VISIBILITY */
.tab-view {
  display: none;
}
.tab-view.active {
  display: block;
}

.subtab-content {
  display: none;
}
.subtab-content.active {
  display: block;
}

.inner-tab-panel {
  display: none;
}
.inner-tab-panel.active {
  display: block;
}

/* DRAWER OVERLAY & ENTERPRISE SLIDE-OVER */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 560px;
  max-width: 92vw;
  height: 100vh;
  background: #ffffff;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.drawer-overlay.open .drawer-content {
  transform: translateX(0);
}

/* MODAL OVERLAY */
.modal-overlay,
.vristo-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open,
.vristo-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card,
.vristo-modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  width: 540px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal-card,
.vristo-modal-overlay.open .vristo-modal-card {
  transform: scale(1);
}


/* TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* TABLET & MOBILE RESPONSIVE ENHANCEMENTS */
@media (max-width: 1023px) {
  .drawer-content {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .modal-card {
    width: 94vw !important;
    max-width: 94vw !important;
    padding: 1.25rem !important;
  }
  .toast-container {
    bottom: 1rem !important;
    right: 1rem !important;
    left: 1rem !important;
  }
}

/* TOUCH SCROLLING OTIMIZADO PARA TABLETS */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}
