.sidebar {
  background: rgba(15, 11, 29, 0.55);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 10px;
  overflow-y: auto;
  
  width: 70px;
  min-width: 70px;
  transition: all 0.3s ease;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 20px 35px rgba(3, 0, 14, 0.55);
}


.sidebar:hover {
  width: 220px;
  min-width: 220px;
}


.sidebar.hidden {
  width: 0;
  min-width: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}

.sidebar.hidden:hover {
  width: 0;
  min-width: 0;
}

.sidebar-btn {
  text-decoration: none;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 10px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.sidebar-btn:hover {
  background: linear-gradient(120deg, rgba(255, 125, 194, 0.25), rgba(116, 242, 242, 0.25));
  color: #ffffff;
  transform: translateX(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.sidebar-btn.active {
  background: linear-gradient(120deg, #ff7dc2, #ffa14f);
  color: #1a0f2f;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(255, 125, 194, 0.35);
}

.sidebar-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}


.sidebar-label {
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar:hover .sidebar-label {
  opacity: 1;
}


.sidebar.hidden .sidebar-label {
  display: none;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}


@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height, 70px);
    height: calc(100vh - var(--header-height, 70px));
    width: 220px;
    min-width: 220px;
    transform: translateX(-100%);
    z-index: 1000;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.8);
  }

  .overlay.active {
    opacity: 0;
    pointer-events: none;
  }

  body.sidebar-ready .sidebar:not(.hidden) {
    transform: translateX(0);
  }

  
  .sidebar.hidden {
    transform: translateX(-100%);
    width: 220px;
    min-width: 220px;
    padding: 15px 8px;
    opacity: 1;
  }

  
  .sidebar .sidebar-label {
    opacity: 1;
  }

  
  .sidebar:hover {
    width: 220px;
    min-width: 220px;
  }
}
