/* ===== MV SIDEBAR - BASE STYLES ===== */

/* Reset e configurações base */
.mv-sidebar * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Forçar tamanho fixo para TODAS as abas da sidebar */
.mv-sidebar__link {
  width: 100% !important;
  min-width: 200px !important;
  max-width: 200px !important;
  font-weight: 600 !important;
  padding: 12px 15px !important;
  box-sizing: border-box !important;
}

/* Estados específicos - sem mudança de tamanho */
.mv-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
  width: 100% !important;
  min-width: 200px !important;
  max-width: 200px !important;
}

.mv-sidebar__link.active {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  width: 100% !important;
  min-width: 200px !important;
  max-width: 200px !important;
  font-weight: 600 !important;
  transform: none !important;
}

/* Texto das abas - tamanho fixo */
.mv-sidebar__text {
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  width: auto !important;
}

/* Ícones - tamanho fixo */
.mv-sidebar__icon {
  font-size: 18px !important;
  width: 20px !important;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Container da sidebar - largura fixa */
.mv-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 250px !important;
  background: #1a1a1a;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

/* Header da sidebar com logo */
.mv-sidebar__header {
  padding: 20px 15px;
  border-bottom: 1px solid #333;
  background: #111;
}

.mv-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mv-sidebar__logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mv-sidebar__logo-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Menu de navegação */
.mv-sidebar__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  padding-top: 10px;
}

/* Scrollbar personalizada para o menu */
.mv-sidebar__menu::-webkit-scrollbar {
  width: 4px;
}

.mv-sidebar__menu::-webkit-scrollbar-track {
  background: transparent;
}

.mv-sidebar__menu::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

.mv-sidebar__menu::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Itens do menu */
.mv-sidebar__item {
  margin: 2px 8px;
}

/* Ícones */
.mv-sidebar__icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mv-sidebar__link:hover .mv-sidebar__icon {
  transform: scale(1.1);
}

/* Texto dos links */
.mv-sidebar__text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Ajuste do conteúdo principal */
body.mv-sidebar-active {
  margin-left: 250px;
  transition: margin-left 0.3s ease;
  width: calc(100% - 250px);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Overlay para mobile (será usado posteriormente) */
.mv-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mv-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Animações de entrada */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.mv-sidebar {
  animation: slideInLeft 0.3s ease-out;
}

/* Estados de carregamento */
.mv-sidebar.loading {
  opacity: 0.7;
}

.mv-sidebar.loading .mv-sidebar__link {
  pointer-events: none;
}

/* Tooltip para modo compacto (será usado em responsive) */
.mv-sidebar__tooltip {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mv-sidebar__tooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #1a1a1a;
}

/* Efeitos visuais adicionais */
.mv-sidebar__link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.mv-sidebar__link:hover::after {
  transform: translateX(100%);
}

/* Indicador de página ativa */

/* Separadores visuais (opcional) */
.mv-sidebar__separator {
  height: 1px;
  background: #333;
  margin: 10px 15px;
}

/* ===== ESTILOS ESPECÍFICOS PARA DASHBOARD ===== */

/* Estilo específico para o item Dashboard */
.mv-sidebar__item--dashboard {
  margin-bottom: 15px;
}

.mv-sidebar__item--dashboard .mv-sidebar__link {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
  border-radius: 8px !important;
  margin: 0 8px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.mv-sidebar__item--dashboard .mv-sidebar__link:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  transform: translateX(3px) !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
}

.mv-sidebar__item--dashboard .mv-sidebar__link.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5) !important;
  transform: none !important;
}

/* Separador específico para Dashboard */
.mv-sidebar__separator--dashboard {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #333, transparent) !important;
  margin: 15px 20px 20px 20px !important;
  border-radius: 1px !important;
  opacity: 0.6;
}

/* Responsividade básica - será expandida no próximo arquivo */
@media (min-width: 1201px) {
  body.mv-sidebar-active {
    margin-left: 250px;
    width: calc(100% - 250px);
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  body.mv-sidebar-active {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
}

@media (max-width: 768px) {
  .mv-sidebar {
    width: 60px;
  }
  
  .mv-sidebar__logo-text,
  .mv-sidebar__text {
    opacity: 0;
  }
  
  body.mv-sidebar-active {
    margin-left: 60px;
    width: calc(100% - 60px);
  }
  
  /* Dashboard responsivo em mobile */
  .mv-sidebar__item--dashboard .mv-sidebar__link {
    margin: 0 4px !important;
    border-radius: 6px !important;
  }
  
  .mv-sidebar__separator--dashboard {
    margin: 10px 8px 15px 8px !important;
    height: 1px !important;
  }
}