:root {
  --jl-black: #060608;
  --jl-panel: #111217;
  --jl-line: rgba(212, 175, 55, 0.22);
  --jl-line-strong: rgba(212, 175, 55, 0.55);
  --jl-ivory: #f7f4ec;
  --jl-ivory-dim: #d8d2c4;
  --jl-muted: #a39c8e;
  --jl-gold-light: #f2dc94;
  --jl-gold: #d4af37;
  --jl-gradient-gold: linear-gradient(135deg, #d4af37 0%, #f2dc94 50%, #c9a432 100%);
}

.dash-body {
  background: #060608;
  color: #f7f4ec;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.dash-layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar Layout ---------- */
.dash-sidebar {
  width: 280px;
  background: #0a0a0d;
  border-right: 1px solid var(--jl-line);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-header {
  margin-bottom: 36px;
}
.sidebar-logo img {
  height: 32px;
  width: auto;
}

/* User Profile Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--jl-panel);
  border: 1px solid var(--jl-line);
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
}
.avatar-ring {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--jl-gradient-gold);
  padding: 1.5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar-initials {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #0c0d10;
  color: var(--jl-gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
}
.user-meta h4 {
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--jl-ivory);
  margin: 0 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px;
}
.client-tier-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--jl-gold-light);
  text-transform: uppercase;
}

/* Navigation Links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.side-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  color: #c7c2b2;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.side-nav-item svg {
  width: 18px; height: 18px;
  stroke: #d4af37;
  transition: transform 0.3s ease;
}
.side-nav-item:hover {
  color: #ffffff;
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.25);
}
.side-nav-item.admin-panel-nav-btn {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #f2dc94;
  margin-bottom: 6px;
  font-weight: 600;
}
.side-nav-item.admin-panel-nav-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--jl-gold);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}
.side-nav-item.active {
  color: #080703;
  background: var(--jl-gradient-gold);
  font-weight: 700;
  box-shadow: 0 6px 20px -5px rgba(212,175,55,0.4);
}
.side-nav-item.active svg {
  stroke: #080703;
}

.sidebar-footer {
  padding-top: 24px;
  border-top: 1px solid var(--jl-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-link-out {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #a39c8e;
  transition: color 0.3s ease;
}
.side-link-out svg { width: 16px; height: 16px; stroke: #a39c8e; }
.side-link-out:hover { color: #f2dc94; }
.side-link-out:hover svg { stroke: #f2dc94; }

.btn-logout {
  width: 100%;
  padding: 8px 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #e2938e;
  background: rgba(201, 100, 95, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-logout svg {
  width: 14px;
  height: 14px;
  stroke: #e2938e;
  flex-shrink: 0;
}
.btn-logout:hover {
  background: rgba(201, 100, 95, 0.2);
  border-color: #c9645f;
  color: #ffffff;
}

/* ---------- Main Content Layout ---------- */
.dash-main-content {
  margin-left: 280px;
  flex-grow: 1;
  padding: 40px 48px 80px;
  min-height: 100vh;
  background: 
    radial-gradient(ellipse 800px 500px at 15% 10%, rgba(212,175,55,0.08), transparent 60%),
    radial-gradient(ellipse 600px 400px at 85% 85%, rgba(212,175,55,0.05), transparent 60%),
    #060608;
}

/* Topbar */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--jl-line);
}
.topbar-title {
  font-size: clamp(28px, 3vw, 42px);
  margin-top: 6px;
  color: #f7f4ec;
}

/* Stat Cards Row */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.stat-card {
  padding: 22px;
  background: #111217;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
}
.stat-icon-box {
  width: 48px; height: 48px;
  border-radius: var(--radius-xs);
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon-box svg { width: 22px; height: 22px; stroke: #f2dc94; }
.stat-info { display: flex; flex-direction: column; overflow: hidden; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #a39c8e;
  text-transform: uppercase;
}
.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #f7f4ec;
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Layout Grid */
.dash-workspace-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  align-items: start;
}

.dash-panel {
  padding: 32px;
  border-radius: var(--radius-md);
  background: #111217;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.85);
  margin-bottom: 32px;
}
.dash-panel h3 {
  font-size: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  padding-bottom: 14px;
  color: #f7f4ec;
}

/* Tracker Panel */
.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #f2dc94;
  display: block;
  margin-bottom: 6px;
}
.tracker-header h2 {
  font-size: 28px;
  line-height: 1.2;
  color: #f7f4ec;
}
.progress-bubble {
  text-align: right;
  flex-shrink: 0;
}
.progress-bubble span {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--jl-gold-light);
  line-height: 1;
}
.progress-bubble label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--jl-muted);
}

.tracker-progress-track {
  height: 8px;
  border-radius: 8px;
  background: #08080a;
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.1);
}
.tracker-progress-fill {
  height: 100%;
  border-radius: 8px;
  background: var(--jl-gradient-gold);
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}

/* Timeline Stepper */
.timeline-stepper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.timeline-stepper::before {
  content: "";
  position: absolute;
  top: 16px; bottom: 16px; left: 16px;
  width: 2px;
  background: var(--jl-line);
  z-index: 1;
}
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  z-index: 2;
}
.step-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: #08080a;
  border: 1.5px solid var(--jl-line-strong);
  color: var(--jl-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-family: var(--font-mono);
  transition: all 0.4s ease;
  flex-shrink: 0;
}
.step-label b {
  font-size: 16px; color: var(--jl-muted); transition: color 0.4s ease; display: block;
}
.step-label span {
  font-size: 13px; color: var(--jl-muted); transition: color 0.4s ease; margin-top: 2px; display: block;
}

.timeline-step.completed .step-dot {
  background: var(--jl-gradient-gold);
  border-color: transparent;
  color: #080703;
  box-shadow: 0 0 15px rgba(212,175,55,0.3);
}
.timeline-step.completed .step-label b { color: var(--jl-ivory); }
.timeline-step.completed .step-label span { color: var(--jl-ivory-dim); }

.timeline-step.active .step-dot {
  border-color: var(--jl-gold);
  background: var(--jl-panel);
  color: var(--jl-gold-light);
  box-shadow: 0 0 18px rgba(212,175,55,0.45);
}
.timeline-step.active .step-label b { color: var(--jl-gold-light); }
.timeline-step.active .step-label span { color: var(--jl-ivory); }

/* Status Panel */
.status-notes-panel .panel-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
.status-notes-panel h3 { border: none; margin: 0; padding: 0; font-size: 18px; }
.status-badge {
  padding: 5px 14px; border-radius: 20px; font-size: 11px;
  background: rgba(212,175,55,0.12); color: var(--jl-gold-light);
  text-transform: uppercase; font-family: var(--font-mono);
  border: 1px solid var(--jl-line);
}
#projStatusNotesText {
  font-size: 15px; color: var(--jl-ivory-dim); line-height: 1.7; margin: 0;
  font-style: italic; background: rgba(212,175,55,0.03);
  padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--jl-line);
}

/* Specifications */
.specs-list { display: flex; flex-direction: column; gap: 18px; }
.specs-list li { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; }
.specs-list li span { color: var(--jl-muted); }
.specs-list li strong { color: var(--jl-ivory); font-weight: 500; }
#specBudget { color: var(--jl-gold-light); font-weight: 700; }

.panel-sub-text { font-size: 13.5px; color: var(--jl-ivory-dim); margin-bottom: 20px; }

/* Empty state glow */
.empty-glow-box {
  padding: 80px 40px; border-radius: var(--radius-lg);
  background: #111217; border: 1px solid rgba(212,175,55,0.35);
  text-align: center; max-width: 640px; margin: 40px auto 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8); position: relative; overflow: hidden;
}
.empty-glow-box svg { width: 72px; height: 72px; margin-bottom: 24px; stroke: #f2dc94; }
.empty-glow-box h3 { font-size: 26px; font-weight: 600; margin-bottom: 14px; color: #f7f4ed; }
.empty-glow-box p { font-size: 15.5px; color: #c7c2b2; line-height: 1.7; max-width: 500px; margin: 0 auto 32px; }

.empty-glow-box .btn-gold-solid,
.empty-glow-box .btn-gold,
.empty-glow-box .btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #f2dc94 50%, #c9a432 100%) !important;
  color: #060502 !important;
  font-weight: 700 !important;
  padding: 16px 36px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-mono) !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4) !important;
  border: none !important;
  transition: all 0.35s ease !important;
}
.empty-glow-box .btn-gold-solid:hover,
.empty-glow-box .btn-gold:hover,
.empty-glow-box .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.65) !important;
}

/* Settings Form */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #c7c2b2; margin-bottom: 8px; font-family: var(--font-mono); }
.form-group input {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-xs);
  background: #08080a; border: 1px solid rgba(212,175,55,0.25);
  color: #f7f4ed; font-family: var(--font-body); font-size: 14.5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus { outline: none; border-color: var(--jl-gold); box-shadow: 0 0 15px rgba(212,175,55,0.25); }

/* Responsive adjustments */
@media (max-width: 1200px) {
  .dash-stats-row { grid-template-columns: repeat(2, 1fr); }
  .dash-workspace-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .dash-sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--jl-line); }
  .dash-layout { flex-direction: column; }
  .dash-main-content { margin-left: 0; padding: 28px 20px 60px; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .dash-stats-row { grid-template-columns: 1fr; }
}

