/* Assessment Sidebar Navigation Styles */

.assessment-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  transition: background 0.3s ease;
  pointer-events: none;
}

.assessment-sidebar-overlay.open {
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.assessment-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #f8faf9;
  border-right: 1px solid #e1e3e2;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.assessment-sidebar-overlay.open .assessment-sidebar {
  transform: translateX(0);
}

.assessment-sidebar-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #1b3c2e;
  font-size: 24px;
  z-index: 1001;
  padding: 0;
}

.assessment-sidebar-close .material-symbols-outlined {
  font-size: 24px;
}

.assessment-sidebar-header {
  padding: 24px 20px 16px;
  background: linear-gradient(135deg, #0d3c2e 0%, #1f6a45 100%);
  color: #fff;
  border-bottom: 1px solid rgba(27, 94, 58, 0.1);
}

.assessment-sidebar-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Newsreader', serif;
}

.assessment-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  flex: 1;
}

.assessment-sidebar-menu li {
  margin: 0;
}

.assessment-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #1b3c2e;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.assessment-sidebar-link:hover {
  background: rgba(27, 106, 69, 0.08);
  color: #1f6a45;
}

.assessment-sidebar-link.active {
  background: rgba(27, 106, 69, 0.14);
  color: #0d3c2e;
  border-left-color: #1f6a45;
  font-weight: 700;
}

.sidebar-icon {
  font-size: 1.4rem;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-label {
  flex: 1;
}

/* Mobile: Show sidebar toggle button */
@media (max-width: 1024px) {
  .assessment-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d3c2e 0%, #1f6a45 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(13, 60, 46, 0.3);
    transition: all 0.2s ease;
  }

  #sidebar-toggle:hover {
    box-shadow: 0 6px 28px rgba(13, 60, 46, 0.4);
    transform: scale(1.08);
  }

  #sidebar-toggle:active {
    transform: scale(0.96);
  }

  #sidebar-toggle .material-symbols-outlined {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .assessment-sidebar {
    width: 280px;
  }

  #sidebar-toggle {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }

  .assessment-sidebar-header {
    padding: 20px 16px 12px;
  }

  .assessment-sidebar-header h2 {
    font-size: 1.2rem;
  }

  .assessment-sidebar-link {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}
