/* Sidebar */
.sidebar {
  width: 16rem;
  background: #18181b;
  border-right: 1px solid #2f2f35;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #2f2f35;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #a855f7;
}

.sidebar-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  color: #e5e7eb;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.1s ease;
}

.nav-btn:hover {
  background: #26262c;
  transform: translateX(2px);
}

.nav-btn.active {
  background: #3b3b40;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #2f2f35;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Main */
.main {
  flex: 1;
  padding: 2rem;
}

.main-header {
  margin-bottom: 2rem;
}

.main-title {
  font-size: 2rem;
  font-weight: 700;
}

.main-sub {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Panels */
.panel-card {
  background: #18181b;
  border-radius: 1rem;
  border: 1px solid #2f2f35;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.panel-meta {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Scrollable chat & users */
.scroll-panel {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
}

.scroll-panel::-webkit-scrollbar {
  width: 8px;
}

.scroll-panel::-webkit-scrollbar-track {
  background: #1f1f23;
}

.scroll-panel::-webkit-scrollbar-thumb {
  background: #3b3b40;
  border-radius: 4px;
}

.scroll-panel::-webkit-scrollbar-thumb:hover {
  background: #4b4b50;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toast */
.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background: #18181b;
  color: #e5e7eb;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #4b5563;
  font-size: 0.85rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  z-index: 50;
}

/* Bouton SO agrandi */
.btn-so {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #a855f7;
  color: white;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-so:hover {
  background: #9333ea;
  transform: translateY(-1px);
}
