/* ═══════════════════════════════════════════════════
   sidebar.css — Боковое меню для страниц-приложений
   (creative, restoration)
   ═══════════════════════════════════════════════════ */

.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }

#nav-sidebar {
  width: 260px; background: rgba(12,12,20,0.95);
  border-right: 1px solid var(--border-default);
  padding: 32px 20px; display: flex; flex-direction: column;
  z-index: 100; backdrop-filter: blur(20px); flex-shrink: 0;
  overflow-y: auto;
}
.sidebar-logo {
  font-family: 'Raleway', sans-serif;
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 40px; text-decoration: none; display: block;
  line-height: 1.2;
}
.beta-badge {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 8px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase;
  background: none; -webkit-text-fill-color: rgba(124,91,245,0.55);
  color: rgba(124,91,245,0.55);
  margin-top: 1px;
}
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: all var(--tr);
}
.sidebar-nav a:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(124,91,245,0.15), rgba(232,168,64,0.05));
  color: var(--text-primary); border: 1px solid rgba(124,91,245,0.2);
}
.nav-icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-profile {
  margin-top: auto; padding-top: 20px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--border-subtle);
}
.sidebar-profile a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; transition: all var(--tr);
}
.sidebar-profile a:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.profile-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
}

/* Мобильное меню */
#burger {
  display: none; position: fixed; top: 16px; left: 16px; z-index: 200;
  background: rgba(24,24,36,0.9); border: 1px solid var(--border-default);
  color: var(--text-primary); font-size: 22px; padding: 8px 12px;
  border-radius: var(--radius-md); cursor: pointer;
}
#mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 99;
}

@media (max-width: 900px) {
  #nav-sidebar {
    position: fixed; left: -280px; top: 0; height: 100vh; height: 100dvh;
    z-index: 150; transition: left 0.3s ease;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  #nav-sidebar.open { left: 0; }
  #burger { display: block; }
  #mobile-overlay.visible { display: block; }
}
