/* Sidebar Dimensions & Base */
.sb-container {
  width: 260px;
  height: calc(100vh - 65px - 20px); /* Adjust based on original top offset */
  background: #1a1a1a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Subtle Top Glow */
.sb-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f1c232, transparent);
  opacity: 0.3;
}

.sb-container.collapsed {
  width: 80px;
}

/* Toggle Button */
.sb-toggle-container {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
  min-height: 56px;
  align-items: center;
}

.collapsed .sb-toggle-container {
  justify-content: center;
}

.sb-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #262626;
  border: 1px solid #333;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sb-toggle-btn:hover {
  background: #333;
  color: #f1c232;
  border-color: #f1c232;
  transform: scale(1.05);
}

/* Search */
.sb-search-wrapper {
  padding: 0.5rem 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.collapsed .sb-search-wrapper {
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
}

.sb-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #252525;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.sb-search-input:focus {
  border-color: #f1c232;
  background: #2a2a2a;
  box-shadow: 0 0 0 3px rgba(241, 194, 50, 0.1);
}

.sb-search-input::placeholder {
  color: #666;
}

/* Menu List */
.sb-menu-content {
  flex: 1;
  padding: 0.5rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.sb-menu-content::-webkit-scrollbar {
  width: 3px;
}

.sb-menu-content::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

/* Menu Item */
.sb-item {
  margin-bottom: 6px;
}

.sb-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #a0a0a0;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  gap: 14px;
}

.sb-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.sb-link.active {
  background: #f1c232 !important;
  color: #1a1a1a !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(241, 194, 50, 0.25);
}

.sb-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sb-link:hover .sb-icon:not(.active) {
  transform: scale(1.1);
}

.sb-label {
  flex: 1;
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.collapsed .sb-label,
.collapsed .sb-chevron {
  display: none;
}

.sb-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #666;
}

.sb-chevron.expanded {
  transform: rotate(180deg);
}

/* Submenu */
.sb-submenu {
  margin-left: 0.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid #262626;
  margin-top: 4px;
  margin-bottom: 8px;
}

.sb-sublink {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  color: #888;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-bottom: 2px;
  position: relative;
}

.sb-sublink::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 50%;
  width: 0.75rem;
  height: 2px;
  background: #262626;
}

.sb-sublink:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.sb-sublink.active {
  color: #f1c232;
  font-weight: 700;
}

/* Footer Section */
.sb-footer {
  padding: 1.5rem 1.25rem;
  border-top: 1px solid #262626;
  background: #181818;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.sb-brand-logo {
  width: 42px;
  height: 42px;
  background: #f1c232;
  color: #1a1a1a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(241, 194, 50, 0.3);
  position: relative;
}

.sb-brand-logo::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1px solid rgba(241, 194, 50, 0.2);
  pointer-events: none;
}

.sb-brand-info {
  display: flex;
  flex-direction: column;
}

.sb-brand-name {
  font-weight: 800;
  font-size: 1rem;
  color: #f1c232;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sb-app-name {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
}

.sb-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 1rem;
  border-bottom: 1px solid #262626;
  margin-bottom: 1rem;
}

.sb-legal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: #666;
}

.sb-legal-item i, .sb-legal-item svg {
  color: #f1c232;
  opacity: 0.7;
}

.sb-version {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #555;
  font-weight: 600;
}

/* Collapsed Responsive Hide */
.collapsed .sb-brand-info,
.collapsed .sb-legal,
.collapsed .sb-version span {
  display: none;
}

.collapsed .sb-brand {
  justify-content: center;
  margin-bottom: 0;
}

.collapsed .sb-footer {
  padding: 1.25rem 0.5rem;
}

/* Locks */
.sb-locked {
  opacity: 0.4;
  cursor: not-allowed !important;
}

.sb-lock-icon {
  margin-left: auto;
  color: #f1c232 !important;
}
