/* =========================================================
   KAOKAB5GC – Application Shell
   Topbar + Sidebar + Branding
   ========================================================= */

/* ================= TOPBAR ================= */

.topbar {
  height: 64px;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #0c1420, #070c14);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar .logo {
  height: 45px;
}

.topbar .title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--brand-gold);
}

.top-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logout-btn {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* ================= SUPPORT VPN SWITCH (TELCO-GRADE) ================= */

.support-vpn-bar {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 6px 12px;
  border-radius: 6px;

  background: rgba(15,23,42,0.65);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* ---- STATUS DOT ---- */

.support-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.support-dot.off {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239,68,68,0.8);
}

.support-dot.on {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.9);
}

/* ---- SWITCH BUTTON ---- */

.support-switch {
  min-width: 190px;              /* 🔒 fixed width (no jump) */
  height: 32px;

  padding: 0 14px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;

  border-radius: 4px;            /* sharp, enterprise */
  border: 1px solid transparent;

  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

/* ---- OFF STATE (Enable) ---- */

.support-switch.off {
  background: linear-gradient(180deg, #7c2d12, #5a1f0d);
  border-color: rgba(239,68,68,0.6);
  color: #fed7aa;
}

.support-switch.off:hover {
  background: linear-gradient(180deg, #9a3412, #7c2d12);
}

/* ---- ON STATE (Disable) ---- */

.support-switch.on {
  background: linear-gradient(180deg, #14532d, #064e3b);
  border-color: rgba(34,197,94,0.6);
  color: #bbf7d0;
}

.support-switch.on:hover {
  background: linear-gradient(180deg, #166534, #14532d);
}

/* ================= SIDEBAR ================= */

.sidebar nav {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

/* Base item */
.sidebar nav a {
  position: relative;

  padding: 12px 18px;
  font-size: 17px;              /* ⬆ slightly larger */
  font-weight: 500;
  letter-spacing: 0.35px;

  color: #e5e7eb;
  cursor: pointer;
  user-select: none;

  /* sharp separation */
  border-bottom: 1px solid rgba(255,255,255,0.06);

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

/* Hover – restrained */
.sidebar nav a:hover {
  background: rgba(255,255,255,0.04);
  color: #ffffff;
}

/* ACTIVE – restrained orange, high-grade */
.sidebar nav a.active {
  color: #ffb347;              /* softer orange */
  font-weight: 700;
  background: rgba(255,165,0,0.08);
}

/* Thin left indicator (sharp, not rounded) */
.sidebar nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    #ffb347,
    #ff9800
  );
}

/* Remove separator on last item */
.sidebar nav a:last-child {
  border-bottom: none;
}
/* =========================================================
   SIDEBAR STRUCTURAL SEPARATORS – TELCO GRADE
   ========================================================= */

/* Space + separator AFTER brand */
/* ================= SIDEBAR ================= */

.sidebar nav {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

/* Base item */
.sidebar nav a {
  position: relative;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.35px;
  color: #e5e7eb;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.sidebar nav a:hover {
  background: rgba(255,255,255,0.04);
  color: #ffffff;
}

.sidebar nav a.active {
  color: #ffb347;
  font-weight: 700;
  background: rgba(255,165,0,0.08);
}

.sidebar nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    #ffb347,
    #ff9800
  );
}

.sidebar nav a:last-child {
  border-bottom: none;
}

/* Space + separator BEFORE status block */
.sidebar-status {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* ================= BRANDING ================= */

/* =========================================================
   SIDEBAR BRAND – TELCO-GRADE PLATE (REFINED)
   ========================================================= */

.brand-inline {
  display: flex;
  align-items: center;        /* icon + text aligned */
  justify-content: center;
  gap: 8px;

  margin: 16px 0 14px;
  padding: 12px 16px;         /* 🔥 compact rectangular plate */

  font-weight: 800;
  font-size: 26px;
  letter-spacing: 2.4px;
  color: #ff9f1a;

  /* Subtle enterprise plate */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;

  /* Very restrained depth */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 12px rgba(0,0,0,0.35);
}

/* Brand text */
.brand-inline .brand-text {
  line-height: 1;
}

/* 5G icon – balanced, not dominant */
.brand-inline .brand-icon {
  height: 34px;
  width: auto;

  filter:
    drop-shadow(0 1px 1px rgba(0,0,0,0.6))
    drop-shadow(0 0 6px rgba(255,165,0,0.3));
}

/* ================= SIDEBAR FOOTER ================= */

.sidebar-footer {
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.sidebar-footer .dot.green {
  box-shadow: 0 0 8px rgba(46,204,113,.6);
}
