/* ui/leftbar.css */
:root {
  --lb-blue: #5078ff;           /* match main task block */
  --lb-blue-2: rgba(80,120,255,.92);
  --lb-icon: rgba(255,255,255,.92);
  --lb-icon-dim: rgba(255,255,255,.72);
  --lb-divider: rgba(255,255,255,.16);
  --lb-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Make sure layout-container is flex (if ui.css already does, this won't hurt) */
#layout-container {
  display: flex;
  align-items: stretch;
}

/* Leftbar shell */
#leftbar-container {
  flex: 0 0 74px;
  width: 74px;
  min-width: 74px;
  background: linear-gradient(180deg, var(--lb-blue), var(--lb-blue-2));
  border-right: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--lb-shadow);
  position: sticky;
  top: 0;
  height: 100vh; /* header ~56px; adjust if header differs */
}

/* If your header height isn't 56px, you can quickly tweak this:
   height: 100vh;  (then leftbar runs behind header) */

.leftbar {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  gap: 10px;
}

.lb-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

/* Avatar button */
.lb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-avatar .lb-initials {
  color: rgba(255,255,255,.92);
  font-weight: 700;
  letter-spacing: .2px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Nav buttons */
.lb-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.lb-btn {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.14);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .12s ease, background .12s ease;
}

.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn:active { transform: scale(.98); }

.lb-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--lb-icon);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
}

.lb-btn.is-active {
  background: rgba(255,255,255,.26);
  border-color: rgba(255,255,255,.28);
}

.lb-divider {
  height: 1px;
  background: var(--lb-divider);
  margin: 8px 6px 2px;
}

/* Bottom area */
.lb-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* Simple popover menu */
.lb-pop {
  position: fixed;
  z-index: 99999;
  width: 220px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  border: 1px solid rgba(0,0,0,.06);
  padding: 8px;
}

.lb-pop .lb-item {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.lb-pop .lb-item:hover {
  background: rgba(0,0,0,.06);
}
