/* -------------------------
   SIDEBAR LATERAL IZQUIERDA
-------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: linear-gradient(180deg, #232526, #414345);
  color: white;
  padding: 30px 15px;
  z-index: 2000;
  overflow-y: auto;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  transform: translateX(-100%);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.sidebar.active {
  transform: translateX(0);
}

/* SECCIONES DE LA SIDEBAR */
.sidebar-section {
  margin-bottom: 25px;
}

.sidebar-title {
  font-size: 15px;
  color: #a8b2c1;
  margin-bottom: 10px;
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* BOTONES DE LA SIDEBAR */
.sidebar-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  padding: 12px 14px;
  color: #ecf0f1;
  font-size: 17px;
  gap: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-btn img {
  width: 26px;
  height: 22px;
  transition: transform 0.3s ease;
}

.sidebar-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.sidebar-btn:hover img {
  transform: scale(1.1);
}

/* QUITAR SOMBREADO TÁCTIL EN MÓVIL */
.sidebar-btn:focus,
.sidebar-btn:active,
.dropdown-container button:focus,
.dropdown-container button:active {
  outline: none;
  background-color: rgba(255, 255, 255, 0.08); /* mismo color que hover */
  -webkit-tap-highlight-color: transparent;
}

/* SUBBOTONES: CUENTAS / PANELES */
.dropdown-container {
  display: none;
  padding-left: 25px;
  margin-top: 5px;
  animation: dropdownFade 0.4s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-container button {
  background: none;
  border: none;
  color: #d0d8e0;
  font-size: 15px;
  cursor: pointer;
  padding: 6px 0;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.dropdown-container button:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.dropdown-btn.active + .dropdown-container {
  display: block;
}

/* SIDEBAR TOGGLE MARGIN */
.sidebar.active ~ .main-content .sidebar-toggle {
  margin-left: 290px;
}
