/* Modern Sidebar styles for EduPilot */

:root {
  --sidebar-width: 80px;
  --sidebar-bg: #062626; /* #062626 deep teal-ish dark */
  --accent: #12b8ad;
  --accent-light: #7feee7;
  --accent-dark: #0b7f78;
  --muted: #8fbfb9;
  --white: #fff;
  --bg-main: #f7fffe;
}

#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 8px;
  box-shadow: 4px 0 16px rgba(0,0,0,0.08);
  z-index: 1000;
  border-radius: 0 24px 24px 0;
}

/* Branding block: compact tile with logo and text */
.brand {
  width: calc(var(--sidebar-width) - 16px);
  margin-bottom: 20px;
  padding: 12px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--bg-main), var(--bg-main));
  box-shadow: 0 10px 30px rgba(6,55,55,0.12), 0 6px 18px rgba(18,184,173,0.06) inset;
  display: flex;
  align-items: center;
  justify-content: center; /* center logo when no text is present */
}

.brand .logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.brand-info { display: none; }

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
  overflow: visible;
}

.nav-icon {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
  filter: brightness(0) invert(1);
}

.nav-text {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--sidebar-bg);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  margin-left: 8px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.nav a.active {
  background: linear-gradient(180deg, rgba(18,184,173,0.12), rgba(18,184,173,0.06));
  box-shadow: 0 8px 24px rgba(6,55,55,0.12);
}

.nav a.active .nav-icon {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}

.nav a:hover {
  background: rgba(18,184,173,0.06);
  width: auto;
  padding-right: 8px;
}

.nav a:hover .nav-icon {
  opacity: 0;
  transform: scale(0.8);
}

.nav a:hover .nav-text {
  opacity: 1;
  visibility: visible;
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.logout-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
  overflow: visible;
}

.logout-btn:hover {
  background: rgba(18,184,173,0.06);
  width: auto;
  padding-right: 8px;
}

.logout-btn:hover .nav-icon {
  opacity: 0;
  transform: scale(0.8);
}

.logout-btn:hover .nav-text {
  opacity: 1;
  visibility: visible;
}

/* Small responsive tweak: when sidebar wider (if used), allow text wrapping */
@media (min-width: 140px) {
  .brand-info { align-items: flex-start; }
}

