.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #020617, #0f172a 55%, #0b1b3a);
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.brand h1 {
  font-size: 28px;
  line-height: 1;
}

.brand h1 span {
  color: #22c55e;
}

.brand p {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 4px;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #cbd5e1;
  transition: var(--transition);
  font-weight: 600;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}

.user-box {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #2563eb;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.user-box small {
  display: block;
  color: #94a3b8;
  margin-top: 2px;
}

.main-content {
    margin-left:0;
    padding:12px;
    padding-bottom:90px;
}

.topbar {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 20px;
}

.topbar h2 {
  font-size: 22px;
}

.topbar p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--success-soft);
  color: #15803d;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
}

.bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .main-content {
  margin-left: 0;
  padding: 12px;
  padding-bottom: 120px;
}

  .topbar {
    border-radius: 18px;
    padding: 14px;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .top-actions {
    display: none;
  }

  .topbar h2 {
    font-size: 17px;
  }

  .topbar p {
    font-size: 12px;
  }

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    height: 68px;

    background: #020617;

    border-radius: 22px 22px 0 0;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    padding: 8px 12px;

    z-index: 100;

    box-shadow: 0 -8px 25px rgba(2, 6, 23, .25);
}

  .bottom-nav a {
    color: #94a3b8;
    display: grid;
    place-items: center;
    gap: 2px;
    font-size: 18px;
    font-weight: 700;
    border-radius:16px;
    transition:.25s;
    padding-top: 4px;
  }

  .bottom-nav a span {
    font-size: 11px;
  }

 .bottom-nav a.active{
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    border-radius:18px;
    
}
}