/* ============================================================
   SHARED PREMIUM SIDEBAR & LAYOUT SYSTEM
   ============================================================ */
.sidebar {
  width: 250px;
  height: 100vh;
  background: linear-gradient(160deg, #141428 0%, #1c1c35 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand-icon {
  font-size: 24px;
  color: #eb6835;
}

.brand-text {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #8a9bc0;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar-nav li a i {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.sidebar-nav li a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  transform: translateX(3px);
}

.sidebar-nav li.active a {
  background: linear-gradient(90deg, rgba(235,104,53,0.2) 0%, rgba(235,104,53,0.05) 100%);
  color: #eb6835;
  border-left: 3px solid #eb6835;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 16px;
}

.sidebar-footer a {
  color: #6a7a94;
  font-size: 16px;
  transition: color 0.3s ease;
}

.sidebar-footer a:hover {
  color: #eb6835;
}

.main-home {
  margin-left: 250px;
  padding: 42px;
}

@media(max-width:992px){
  .main-home{ margin-left: 0; }
  .sidebar{ display: none; }
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;              /* consistent width */
  height: 100vh;
  background: #12192b;       /* dark theme */
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.sidebar h2 {
  color: #ffffff;
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

/* NAV ITEMS */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 8px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;                 /* spacing between icon and text */
  padding: 12px 20px;
  border-radius: 12px;
  color: #d0d6e2;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

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

.sidebar i {
  font-size: 16px;
  min-width: 20px;           /* ensures icons align */
  text-align: center;
}
