/* J & C Commercial Cleaning - Shared Admin Sidebar */

:root {
  --jc-lime: #dbe72e;
  --jc-black: #151606;
  --jc-bg: #f4f5f0;
  --jc-blue: #70cae1;
  --jc-side: 250px;
}

body {
  padding-left: var(--jc-side);
}

.jc-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--jc-side);
  background: var(--jc-black);
  color: #fff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  box-shadow: 3px 0 14px rgba(0,0,0,.15);
  overflow-y: auto;
}

.jc-sidebar-brand {
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.jc-sidebar-brand img {
  display: block;
  max-width: 175px;
  max-height: 72px;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}

.jc-sidebar-title {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  color: #d9dbd2;
  text-transform: uppercase;
}

.jc-sidebar-nav {
  padding: 14px 10px 22px;
  flex: 1;
}

.jc-nav-section {
  margin: 16px 10px 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #aeb0a8;
}

.jc-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  padding: 11px 12px;
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.jc-nav-link:hover {
  background: rgba(255,255,255,.09);
}

.jc-nav-link.active {
  background: var(--jc-lime);
  color: var(--jc-black);
}

.jc-nav-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.jc-sidebar-footer {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 11px;
  line-height: 1.45;
  color: #bfc1b8;
  text-align: center;
}

.jc-menu-toggle {
  display: none;
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10002;
  border: 0;
  border-radius: 9px;
  background: var(--jc-black);
  color: #fff;
  padding: 10px 12px;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  cursor: pointer;
}

.jc-sidebar-overlay {
  display: none;
}

@media (max-width: 850px) {

  body {
    padding-left: 0;
  }

  .jc-menu-toggle {
    display: block;
  }

  .jc-sidebar {
    transform: translateX(-105%);
    transition: transform .2s ease;
    width: 270px;
  }

  .jc-sidebar.open {
    transform: translateX(0);
  }

  .jc-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 9999;
  }

  .jc-sidebar-overlay.show {
    display: block;
  }
}