/*
  Dashboard Styles for Linglear

  This stylesheet provides a dark, semi‑minimalist sidebar layout that
  complements the main Linglear theme. It reuses the accent colour and
  background gradients from the public pages while offering a clear,
  responsive navigation structure on the left side of the dashboard.
*/

:root {
  --bg-dark: #050915;
  --sidebar-bg: rgba(12, 22, 48, 0.94);
  --content-bg: rgba(7, 17, 38, 0.92);
  --accent: #26a8ff;
  --text-main: #f5f7ff;
  --text-muted: #9aa3c5;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --sidebar-width: 240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(circle at 15% -20%, #1c4bff 0, transparent 55%),
    radial-gradient(circle at 110% 120%, var(--accent) 0, transparent 60%),
    radial-gradient(circle at 0 130%, #111827 0, #020617 65%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.dashboard {
  display: flex;
  flex: 1;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.sidebar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.sidebar-brand span {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.sidebar-nav {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav a:hover {
  background: rgba(38, 168, 255, 0.12);
  color: var(--text-main);
}

.sidebar-nav a.active {
  background: rgba(38, 168, 255, 0.18);
  color: var(--text-main);
}

.sidebar-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-footer .email {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--accent);
  word-break: break-all;
}

.sidebar-footer button {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(5, 16, 35, 0.85);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-footer button:hover {
  background: rgba(10, 27, 34, 0.95);
  border-color: rgba(38, 168, 255, 0.6);
  color: var(--text-main);
}

/* Main content area */
.dashboard-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  background: var(--content-bg);
  border-left: 1px solid rgba(157, 178, 255, 0.1);
}

.dashboard-content h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.dashboard-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Mobile sidebar */
.sidebar-toggle {
  display: none;
}

@media (max-width: 700px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    width: 220px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: block;
    color: var(--text-main);
  }
  .dashboard-content {
    padding: 80px 20px;
  }
}
