﻿:root {
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(135deg, #1a1c2e 0%, #16181f 100%);
  padding-top: 5px;
  padding-bottom: 30px;
  transition: all 0.3s ease;
  overflow-y: auto;
  overflow-x:hidden;
  top: 0;
}

.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

.sidebar-link {
  text-align: left;
  color: #a0a3bd;
  transition: all 0.2s ease;
  border-radius: 8px;
  /*margin: 2px 16px;*/
  white-space: nowrap;
  overflow: hidden;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
}

.sidebar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.logo-text {
  background: linear-gradient(45deg, #6b8cff, #8b9fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s ease;
}

.notification-badge {
  background: #ff6b6b;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
}

.profile-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
  margin-left: var(--sidebar-width);
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .main-content {
    margin-left: 0 !important;
  }
}

.collapsed ~ .main-content {
  margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
  position: absolute;
  left: calc( var(--sidebar-width) + 5px);
  top: 45px;
  background: linear-gradient(135deg, #1a1c2e 0%, #16181f 100%);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 100;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: white;
  /*transition: all 0.3s ease;*/
}

.toggle-btn-fixed {
  position: fixed !important;
  top: 6px !important;
}

.toggle-btn.collapsed {
  left: calc( var(--sidebar-width-collapsed) + 5px);
  transform: rotate(180deg);
}

.collapsed .hide-on-collapse {
  opacity: 0;
  visibility: hidden;
}

.collapsed .logo-text {
  opacity: 0;
}

.collapsed .profile-info {
  opacity: 0;
}

.collapsed .sidebar-link {
}

.collapsed .sidebar-link i {
  margin: 0 !important;
}

.profile-info {
  transition: opacity 0.2s ease;
}
