
.menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    box-shadow: 2px 0 10px var(--shadow-color);
    transition: left 0.3s ease, background-color 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    display: none;
}

@media (max-width: 768px) {
    .menu-sidebar {
        display: block;
    }
}

.menu-sidebar.active {
    left: 0;
}

.menu-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-primary);
}

.menu-sidebar-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-hover);
    font-weight: 600;
}

.menu-close-btn {
    background: none;
    border: none;
    color: var(--text-hover);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.menu-close-btn:hover {
    color: var(--text-secondary);
}

.menu-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-sidebar-list li {
    margin: 0;
    border-bottom: 1px solid var(--border-primary);
}

.menu-sidebar-list li:last-child {
    border-bottom: none;
}

.menu-sidebar-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.menu-sidebar-list a:hover {
    background: var(--bg-tertiary);
    color: var(--text-hover);
    padding-left: 2rem;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--overlay-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .menu-overlay {
        display: block;
    }
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 400px) {
    .menu-sidebar {
        width: 90%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-sidebar,
    .menu-overlay {
        transition: none;
    }
}

/* Боковая закладка OS */
.os-tab {
  position: fixed;
  right: -60px;
  bottom: 240px;
  width: 90px;
  height: 50px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-right: none;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 2px 6px var(--shadow-color);
  transition: right 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
}

.os-tab:hover {
  right: 0;
  background: var(--bg-hover);
  box-shadow: -3px 3px 8px var(--shadow-color);
}

.os-tab-text {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
}

.os-tab:hover .os-tab-text {
  color: var(--text-hover);
  transform: translateX(-5px);
}

/* Специальные стили для темы Stellar */
[data-theme="stellar"] .os-tab {
  background: var(--bg-tertiary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Адаптив */
@media (max-width: 768px) {
  .os-tab {
    bottom: 100px;
    width: 80px;
    height: 45px;
  }

  .os-tab-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .os-tab {
    bottom: 80px;
    right: -50px;
    width: 70px;
    height: 40px;
  }

  .os-tab-text {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-tab,
  .os-tab-text {
    transition: none;
  }
}