/* Sidebar styles */

/* Burger icon styling */
#sidebarToggle,
#teacherSidebarToggle,
#adminSidebarToggle {
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#sidebarToggle:hover,
#teacherSidebarToggle:hover,
#adminSidebarToggle:hover {
    background-color: #e9d5ff;
    transform: scale(1.05);
}

/* Show burger icon on mobile */
@media (max-width: 1023px) {

    #sidebarToggle,
    #teacherSidebarToggle,
    #adminSidebarToggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure the sidebar is hidden by default on mobile */
    #sidebar,
    #teacherSidebar,
    #adminSidebar {
        transform: translateX(-100%);
    }
}

/* Sidebar transition */
#sidebar,
#teacherSidebar,
#adminSidebar {
    transition: transform 0.3s ease-in-out;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    width: 16rem;
    /* w-64 in Tailwind */
}

/* Sidebar overlay */
#sidebarOverlay,
#teacherSidebarOverlay,
#adminSidebarOverlay {
    transition: opacity 0.3s ease;
    z-index: 30;
}

/* Dropdown animations for admin sidebar */
.fa-chevron-down {
    transition: transform 0.3s ease;
}

.fa-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

/* Section label styling for admin sidebar */
/* More specific selectors to protect sidebar labels from being overridden */
#adminSidebar .section-label,
#teacherSidebar .section-label,
#sidebar .section-label,
.sidebar-section-header {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9333ea !important;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
}

/* Indent menu items under section headers */
.sidebar-section-header + ul li {
  padding-left: 1rem;
}
/* Large screen styles */
@media (min-width: 1024px) {

    #sidebar,
    #teacherSidebar,
    #adminSidebar {
        transform: translateX(0) !important;
    }
}

/* When session is switched, push sidebars below the 70px banner */
body.session-switched #sidebar,
body.session-switched #adminSidebar {
    top: 70px;
}

@media (max-width: 640px) {
    body.session-switched #sidebar,
    body.session-switched #adminSidebar {
        top: 90px;
    }
}

/* === EchoVQ Teacher Advisory Circle / Global Typography Utilities === */
.teacher-circle-container {
  width: 100%;
  height: 100%;
  padding: 2rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notion-embed-frame,
.docs-embed-frame {
  border: none;
  border-radius: 12px;
  width: 100%;
  max-width: 1280px;
  height: 85vh;
  margin-top: 1rem;
}

.echo-font {
  font-family: 'Inter', 'Poppins', 'Helvetica Neue', sans-serif !important;
  color: #1f1f1f;
}

/* ============================================================
 * Workspace card (top of sidebar, between EchoVQ logo and menu)
 * Spec: docs/superpowers/specs/2026-04-25-workspace-switcher-design.md
 * ============================================================ */

.ws-card-wrap {
  position: relative;
  margin: 0 12px 14px;
  /* Sidebar root uses `flex flex-col items-center`, which would shrink
     this wrapper to its content width and make the card visibly narrower
     in modes with shorter names (e.g. "My Practice" vs "Southbank Grammar").
     align-self: stretch overrides the parent's items-center for this child. */
  align-self: stretch;
}

.ws-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ws-card:hover {
  background: #fafafa;
  border-color: #d1d5db;
}

.ws-card:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.ws-card--static {
  cursor: default;
}

.ws-card--static:hover {
  background: #ffffff;
  border-color: #e5e7eb;
}

.ws-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.ws-card__logo--square {
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.ws-card__logo--circle {
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.ws-card__logo--sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.ws-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ws-card__eyebrow {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #6b7280;
  line-height: 1.2;
}

.ws-card__name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-card__chev {
  color: #9ca3af;
  font-size: 13px;
  transition: transform 0.15s ease;
}

.ws-card[aria-expanded="true"] .ws-card__chev {
  transform: rotate(180deg);
  transition: transform 0.15s ease;
}

/* Dropdown menu */

.ws-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 50;
  animation: ws-menu-in 0.15s ease-out;
}

@keyframes ws-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ws-menu__header {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #9ca3af;
  padding: 8px 10px 4px;
}

.ws-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.ws-menu__item:hover {
  background: #f9fafb;
}

.ws-menu__item--active,
.ws-menu__item--active:hover {
  background: #f3f0ff;
  cursor: default;
}

.ws-menu__text {
  flex: 1;
  min-width: 0;
}

.ws-menu__name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.ws-menu__sub {
  display: block;
  font-size: 10px;
  color: #6b7280;
  margin-top: 2px;
}

.ws-menu__dot {
  color: #7c3aed;
  font-size: 10px;
}
