/* ============================================================
   GLASS SIDEBAR (Separate File)
============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15, 18, 30, 0.6);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.35s ease;
  z-index: 1000;
}


/* Collapsed (desktop) */
.sidebar.collapsed {
  width: 80px;
}
.sidebar.collapsed nav span,
.sidebar.collapsed .brand h1 {
  display: none;
}

/* Sidebar Body */
.sidebar-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
}
.sidebar-body .brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.sidebar-body .logo {
  background: linear-gradient(135deg, var(--accent), #e0b23a);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-weight: bold;
  color: #000;
  font-size: 1.1rem;
}
.sidebar-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Sidebar Nav */
.sidebar nav a {
  display: flex;
  align-items: center;
  color: var(--muted);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.sidebar nav i {
  font-size: 1.2rem;
  margin-right: 10px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-footer .logout-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 100%;
  padding: 0.6rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}
.sidebar-footer .logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Floating Toggle Button */
.floating-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #f3ba2f);
  border: none;
  color: #000;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1050;
  transition: transform 0.3s;
}
.floating-toggle:hover {
  transform: scale(1.1);
}

/* Main Content */
.main-content {
  margin-left: 270px;
  transition: margin-left 0.3s ease;
  padding: 1.5rem;
}
.main-content.expanded {
  margin-left: 80px;
}

/* Responsive */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    width: 240px;
  }
  .sidebar.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .main-content,
  .main-content.expanded {
    margin-left: 0;
  }
  .floating-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .floating-toggle {
    display: none;
  }
}
