:root {
  --background-site: #FAFAFA;
  --background-menu: #FFFFFF;
  --background-submenu: #F0F4FF;
  --text_menu: #1363b3;
  --ciano-dark: #1565C0;
  --text-dark: #1E2D40;
  --text-muted: #78909C;
  --press: #1976d21a;
}

/* Main content */
.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 20px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-menu);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.searchbar input {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  width: 300px;
  font-size: 14px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
}

.user-profile img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #ddd;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 150px;
  z-index: 1000;
}

.user-profile:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 15px;
  color: var(--text-dark);
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: var(--press);
}

/* Slides wrapper - controle de visibilidade das telas */
#hero-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px;
  background-color: #121212;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: left 0.5s ease-in-out;
  padding: 20px;
  box-sizing: border-box;
}

.hero-slide.active {
  left: 0;
}

.hero-slide.previous {
  left: -100%;
}

.hero-nav {
  height: 100px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0);
  border-radius: 20px;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;

  /* Suavidade na animação */
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%) scale(1.1);
}


#hero-prev {
  left: 10px;
}

#hero-next {
  right: 10px;
}


.slides-wrapper {
  position: relative;
}

.home-panel {
  display: none;
  margin-top: 20px;
  background-color: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  min-height: 400px;
}

.home-panel.active {
  display: block;
}

.home-panel > div {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  width: 100%;
}

.home-panel .text {
  max-width: 600px;
  flex: 1;
  font-size: 18px;
  color: var(--text-dark);
}

.home-panel .text h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.home-panel .text p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Botões de ação */
.btn-action {
  background-color: var(--text_menu);
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 6px 12px rgba(0, 150, 200, 0.2);
  text-align: center;
  transition: background-color 0.3s, transform 0.2s;
  user-select: none;
}

.btn-action:hover {
  background-color: var(--ciano-dark);
  transform: translateY(-2px);
}

.home-panel img {
  max-width: 400px;
  width: 100%;
  flex: 1;
  background-color: #f0f0f0;
  border-radius: 12px;
  min-height: 200px;
}

/* Submenus para seleção de idioma e módulo */
.submenu {
  display: none;
  background-color: var(--background-submenu);
  padding: 10px;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  position: relative;
  max-width: 300px;
}

.submenu.show {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

.submenu li {
  padding: 12px 15px;
  cursor: pointer;
  color: var(--text-dark);
  border-radius: 6px;
  margin-bottom: 5px;
  transition: background-color 0.2s;
}

.submenu li:hover {
  background-color: var(--press);
  color: var(--text_menu);
}

.submenu li:last-child {
  margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 768px) {
  .sidebar {
      width: 200px;
  }
  
  .main-content {
      margin-left: 200px;
  }
  
  .home-panel {
      padding: 20px;
  }
  
  .home-panel > div {
      flex-direction: column;
      gap: 20px;
  }
  
  .searchbar input {
      width: 200px;
  }
}

@media (max-width: 600px) {
  .sidebar {
      width: 100%;
      position: relative;
      height: auto;
  }
  
  .main-content {
      margin-left: 0;
  }
  
  .topbar {
      flex-direction: column;
      gap: 15px;
  }
  
  .searchbar input {
      width: 100%;
  }
}

