/* 🔄 Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

/* 📐 Layout principal */
.custom-layout-container {
  display: flex;
  min-height: 100vh;
  background-color: #f4f4f4;
  transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
}

/* 📂 Sidebar custom */
.custom-sidebar {
  width: 250px;
  background-color: #1e272e;
  color: #ecf0f1;
  padding-top: 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  border-right: 1px solid #485460;
  transform: translateX(0);
}

.custom-sidebar.collapsed {
  transform: translateX(-100%);
}

.custom-sidebar.collapsed .custom-logo {
  display: none;
}

/* 📄 Conteúdo principal */
.custom-layout-container main {
  margin-left: 250px;
  padding: 20px;
  width: calc(100% - 250px);
  background: white;
  min-height: 100vh;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
}

.custom-layout-container.collapsed main {
  margin-left: 0;
  width: 100%;
}

/* 🔘 Header da sidebar com logo + seta SVG */
.custom-sidebar-header {
  position: relative;
  padding: 25px 15px 15px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo centralizada */
.custom-logo {
  display: block;
  max-height: 70px;
  margin: 0 auto;
}

/* Botão com SVG da seta */
.btn-toggle-seta {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

/* Estilo do ícone SVG */
.seta-icon {
  width: 32px;
  height: 32px;
  color: #ecf0f1;
  transition: transform 0.3s ease;
}

/* Rotação ao recolher */
.custom-layout-container.collapsed .seta-icon {
  transform: rotate(180deg);
}

/* Botão flutuante para reabrir o menu */
.btn-toggle-seta-flutuante {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background-color: #1e272e;
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: none;
  opacity: 0.8;
}

.custom-layout-container.collapsed + .btn-toggle-seta-flutuante {
  display: block;
}

/* Navegação da sidebar */
.custom-sidebar nav ul {
  list-style: none;
  width: 100%;
}

.custom-sidebar nav ul li {
  width: 100%;
  text-align: left;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-sidebar nav ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  color: #ecf0f1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, padding-left 0.2s;
}

.custom-sidebar nav ul li a:hover {
  background: #34495e;
  padding-left: 25px;
}

/* Dropdowns personalizados */
.custom-dropdown .custom-dropdown-toggle {
  cursor: pointer;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-dropdown .custom-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.custom-dropdown.open .custom-dropdown-toggle .custom-arrow {
  transform: rotate(90deg);
}

.custom-dropdown-menu_1 {
  background: #2f3640;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.custom-dropdown-menu_1 li a {
  padding: 10px 30px;
  font-size: 14px;
  color: #dcdde1;
  transition: background 0.2s ease-in-out, padding-left 0.2s ease;
}

.custom-dropdown-menu_1 li a:hover {
  background: #3b4b5c;
  color: #ffffff;
  padding-left: 35px;
}

/* Botão de logout */
.custom-sidebar form {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.custom-btn-logout {
  width: 80%;
  padding: 10px;
  background: #e74c3c;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.custom-btn-logout:hover {
  background: #c0392b;
}
