/* === NAVBAR CLEAN DARK THEME === */
.top-navbar {
  background: #1C1B1F;
  padding: 8px 20px;
  border-bottom: 1px solid #2E2C32;
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* logo */
.navbar .brand-logo {
  width: 40px;
  height: auto;
}

.navbar .brand-name {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-left: 10px;
}

.navbar .nav-link {
  color: #fff;
  font-size: 18px;
}

.navbar .nav-link:hover {
  color: #DC1F2D;
}

/* === SIDEBAR CORE === */
.sidebar {
  width: 65px;
  transition: width 0.3s ease;
  background: #1f2937;
  color: white;
  height: 100vh;
  position: fixed;
  overflow-x: hidden;
  padding-top: 20px;
  left: 0;
  top: 0;
  z-index: 1030; /* keeps it above navbar */
}

/* === TEXT HIDDEN WHEN COLLAPSED === */
.sidebar span,
.sidebar .group-title {
  opacity: 0;
  width: 0;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* === SHOW TEXT ON HOVER === */
.sidebar:hover span,
.sidebar:hover .group-title {
  opacity: 1;
  width: auto;
  margin-left: 10px;
}

/* === ICONS === */
.sidebar a i {
  font-size: 18px;
  min-width: 24px;
  text-align: center;
}

/* === EXPAND WIDTH === */
.sidebar:hover {
  width: 240px;
}

/* === LINKS === */
.sidebar a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sidebar a:hover {
  background: #374151;
}

/* === GROUP TITLES === */
.group-title {
  font-size: 12px;
  opacity: 0.7;
  padding-left: 20px;
  margin-top: 15px;
  text-transform: uppercase;
}

/* === CONTENT WRAPPER SHIFT === */
.content-wrapper {
  margin-left: 65px;
  transition: margin-left 0.3s ease;
  padding: 65px;
}

.sidebar:hover + .content-wrapper {
  margin-left: 240px;
}
