body {
  margin: 0;
  font-family: Arial, sans-serif;
}

#sidebar-panel {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 70px;
  background: #3B59F7;
  color: white;
  z-index: 1000;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
  padding: 0;
}

#sidebar-panel.active {
  width: 220px;
  transform: translateX(0);
  padding-top: 40px;
}

.sidebar-marca {
  opacity: 0;
  pointer-events: none;
  transition:  opacity 0.s;
  padding: 40px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
}

#sidebar-panel.active .sidebar-marca {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.1s;
}

.sidebar-marca ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar-marca li {
  margin: 8px 10px;
  width: auto;;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.sidebar-marca a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  width: 100%;
  font-family: "Segoe UI", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 16px;
  transition: color 0.3s;
  white-space: nowrap;
  justify-content: flex-start;
}

.sidebar-marca li:not(.active):hover a {
    color: #ffffff;
}

.sidebar-marca li:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(6px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-marca li.active {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.sidebar-marca li.active a {
    color: #3B59F7;
    font-weight: 700;
}

#menu-toggle {
  position: fixed;
  left: 13px;
  top: 20px;
  width: 38px;
  height: 38px;
  font-size: 26px;
  background: #3B59F7;
  color: white;
  border: none;
  z-index: 1101;
  cursor: pointer;
  border-radius: 8px;
  display: block;
}

#sidebar-panel.active .close-btn {
  display: block;
}

main {
  margin-left: 65px;
  padding: 20px;
}

@media (max-width: 768px) {
  main {
    margin-left: 0;
  }
}

#config-container {
  position: fixed;
  bottom: 20px;
  left: 13px; 
  z-index: 1102;
}

.config-link {
  display: flex;
  align-items: center;
  height: 50px;
  width: 50px; 
  background-color: white;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-decoration: none;
  overflow: hidden;
  transition: width 0s cubic-bezier(.4,0,.2,1), background-color 0.2s, transform 0.2s;
}

#sidebar-panel.active ~ #config-container .config-link {
  width: 160px;
}

#sidebar-panel.active ~ #config-container .config-link h1 {
  opacity: 1;
}

.config-link:hover {
  background-color: #eef2ff;
  transform: scale(1.1);    
  box-shadow: 0 6px 15px rgba(59, 89, 247, 0.4); 
}

.ia-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-left: 10px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 1px black);
}

.config-link h1 {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
  margin: 0 0 0 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

#sidebar-panel.active ~ #config-container {
  left: 30px;
}

#sidebar-panel.active {
  width: 220px;
  transform: translateX(0);
  padding-top: 40px;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

#top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 999;
}

.brand-name {
  font-family: "poppins", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #3B59F7;
  letter-spacing: 0.5px;
  margin-left: 90px;
  padding-top: 20px;
}

.brand-name.movido {
  margin-left: 240px;
}

