/* GlobalCalc sidebar shell and navigation defaults */
/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background:
    radial-gradient(circle at 18% 18%, rgba(0,229,160,0.16), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(124,106,255,0.18), transparent 28%),
    linear-gradient(180deg, var(--brand-dark-2) 0%, var(--brand-dark) 100%);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), background 0.3s, border-color 0.3s;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 18px 0 40px rgba(7,10,20,0.22);
}

.sidebar-brand {
  padding: 24px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand-link {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.04em;
  color: #f8fbff;
  text-decoration: none;
  display: block;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.brand-link span {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav */
.sidebar-nav {
  padding: 14px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: rgba(226,232,240,0.72);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(0,229,160,0.16), rgba(124,106,255,0.14));
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-violet) 100%);
  border-radius: 0 3px 3px 0;
}
.nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lang-section-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.72);
  margin-bottom: 6px;
  font-family: 'DM Mono', monospace;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.lang-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 6px 2px;
  color: rgba(226,232,240,0.7);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  line-height: 1.4;
}
.lang-btn:hover { border-color: rgba(0,229,160,0.48); color: #fff; background: rgba(255,255,255,0.07); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--brand-green-2) 0%, var(--brand-violet-2) 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(100,86,224,0.20);
}
[data-theme="dark"] .lang-btn.active { color: #000; }

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  color: rgba(226,232,240,0.78);
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}
.theme-toggle:hover { border-color: rgba(0,229,160,0.42); color: #fff; background: rgba(255,255,255,0.07); }

.sidebar-links { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.sidebar-links a { font-size: 11px; color: rgba(148,163,184,0.78); text-decoration: none; transition: color 0.15s; font-family: 'DM Mono', monospace; }
.sidebar-links a:hover { color: #fff; }

