/* 05-sidebar.css — Sidebar, designation badge, pathway badge, phase nav, milestones, sidebar footer, account settings overlay */

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.sidebar {
  background: var(--cobalt);
  display: flex; flex-direction: column;
  height: 100vh; overflow-y: auto; overflow-x: hidden;
  position: relative; z-index: 10;
}

.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 40% at 50% 0%, rgba(74,127,168,0.15), transparent 50%),
    radial-gradient(ellipse 80% 30% at 50% 100%, rgba(184,92,56,0.08), transparent 40%);
  pointer-events: none;
}

.sidebar-brand {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.brand-geo {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.5em; text-transform: uppercase;
  color: white; display: block; margin-bottom: 3px;
}

.brand-full {
  font-family: 'Spectral', serif;
  font-size: 12px; font-style: italic; font-weight: 300;
  color: var(--gold-light); letter-spacing: 0.08em; display: block;
}

/* Designation badge — moved to topbar as compact pill; sidebar version hidden */
.designation-badge {
  display: none;
  margin: 14px 20px;
  background: rgba(184,146,74,0.1);
  border: 1px solid rgba(184,146,74,0.25);
  padding: 12px 16px;
}

.desig-eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(184,146,74,0.7); margin-bottom: 3px;
}

.desig-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 400;
  color: var(--gold-light); margin-bottom: 2px;
}

.desig-sub {
  font-size: 10px; font-weight: 300;
  color: rgba(255,255,255,0.6); line-height: 1.4;
}

.desig-progress-bar {
  margin-top: 10px; height: 2px;
  background: rgba(255,255,255,0.08); border-radius: 1px; overflow: hidden;
}

.desig-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

.desig-progress-label {
  font-size: 10px; font-weight: 300;
  color: rgba(255,255,255,0.55); margin-top: 5px; letter-spacing: 0.05em;
}

/* Pathway badge in sidebar — moved to topbar as compact pill; sidebar version hidden */
.pathway-badge {
  display: none;
  margin: 0 20px 14px;
  padding: 12px 14px;
  background: rgba(184, 92, 56, 0.12);
  border: 1px solid rgba(184, 92, 56, 0.3);
  border-left: 3px solid var(--terracotta);
  border-radius: 4px;
  align-items: center; gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.pathway-badge:hover { background: rgba(184, 92, 56, 0.18); }

.pathway-badge-icon { font-size: 16px; flex-shrink: 0; }

.pathway-badge-info { flex: 1; min-width: 0; }

.pathway-badge-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terra-light); margin-bottom: 3px;
}

.pathway-badge-name {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.95);
  line-height: 1.3;
}

.pathway-badge-change {
  font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em; text-transform: uppercase;
  flex-shrink: 0;
}

/* Phase nav */
.phase-nav { padding: 8px 0; flex: 1; }
.tools-section { padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.07); margin-top: 4px; }

.phase-nav-title {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 0 24px 10px;
}

.phase-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  margin: 2px 12px;
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.2s;
  position: relative;
}

.phase-nav-item:hover { background: rgba(255,255,255,0.06); }
.phase-nav-item.active { background: rgba(255,255,255,0.09); }
.phase-nav-item.completed .phase-nav-num { background: var(--forest); border-color: var(--forest); }
.phase-nav-item.completed .phase-nav-num span { display: none; }
.phase-nav-item.completed .phase-nav-num::after { content: '\2713'; font-size: 9px; position: absolute; color: rgba(255,255,255,0.8); }
.phase-nav-item.locked { opacity: 0.35; cursor: not-allowed; }
.phase-nav-item.locked:hover { background: transparent; }
.phase-nav-item.preview { opacity: 0.8; cursor: pointer; }
.phase-nav-item.preview:hover { background: rgba(255,255,255,0.04); opacity: 1; }
.phase-nav-item.preview .phase-nav-num { border-color: rgba(255,255,255,0.25); }
.phase-nav-item.preview .phase-nav-num span { color: rgba(255,255,255,0.55); }

.phase-nav-num {
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.6);
  position: relative; transition: all 0.2s;
}

.phase-nav-item.active .phase-nav-num {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: white;
}

.phase-nav-info { flex: 1; min-width: 0; }

.phase-nav-label {
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.72);
  line-height: 1.3; transition: color 0.2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.phase-nav-item.active .phase-nav-label { color: white; font-weight: 600; }
.phase-nav-item.completed .phase-nav-label { color: rgba(255,255,255,0.65); }

.phase-nav-tasks {
  font-size: 10px; font-weight: 300;
  color: rgba(255,255,255,0.55); margin-top: 1px;
}

.phase-nav-item.active .phase-nav-tasks { color: rgba(255,255,255,0.6); }

.desig-milestone {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 20px;
  padding: 6px 12px;
  background: rgba(184,92,56,0.12);
  border: 1px solid rgba(184,92,56,0.35);
}

.desig-milestone-dot {
  width: 6px; height: 6px;
  background: var(--terracotta); border-radius: 50%; flex-shrink: 0;
}

.desig-milestone-text {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(184,92,56,0.85);
  white-space: nowrap;
}

.desig-milestone::after { display: none; }

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
  flex-shrink: 0;
}

.sidebar-footer-link {
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,0.55);
  display: block; margin-bottom: 6px;
  cursor: pointer; transition: color 0.2s; letter-spacing: 0.04em;
}

.sidebar-footer-link:hover { color: rgba(255,255,255,0.8); }

/* Account Settings overlay */
.acct-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.acct-card {
  background: #F5F2EC; width: 380px; max-width: 92vw;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}
.acct-header {
  background: var(--cobalt); color: white;
  padding: 14px 20px; display: flex; align-items: center; justify-content: space-between;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
}
.acct-close {
  background: none; border: none; color: rgba(255,255,255,0.6); font-size: 16px;
  cursor: pointer; padding: 0 4px; transition: color 0.2s;
}
.acct-close:hover { color: white; }
.acct-body { padding: 20px; }
.acct-section {
  padding: 12px 0; border-bottom: 1px solid #E0DAD0;
}
.acct-section:last-of-type { border-bottom: none; }
.acct-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #777; margin-bottom: 4px;
}
.acct-value {
  font-size: 13px; color: #333; font-weight: 400; line-height: 1.4;
}
.acct-input {
  width: 100%; padding: 7px 10px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #333; border: 1px solid #D0C9BD; border-radius: 4px;
  background: #FAFAF7; outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.acct-input:focus { border-color: var(--cobalt); }
.acct-input::placeholder { color: #aaa; }
.acct-actions {
  display: flex; gap: 10px; margin-top: 16px;
}
.acct-btn {
  flex: 1; padding: 10px; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.2s;
}
.acct-btn:hover { opacity: 0.85; }
.acct-btn-secondary {
  background: var(--cobalt); color: white;
}
.acct-btn-logout {
  background: var(--terracotta); color: white;
}
