/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Task T199: Navigation sidebar styling */

/* Sidebar container */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  z-index: 100;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* Sidebar header */
.sidebar-header {
  background-color: #f8f9fa;
}

.sidebar-header h4 {
  color: #212529;
  font-weight: 600;
}

/* Navigation links */
#sidebar .nav-link {
  color: #495057;
  padding: 0.75rem 1rem;
  border-radius: 0;
  transition: all 0.2s ease;
}

#sidebar .nav-link:hover {
  color: #0d6efd;
  background-color: #e9ecef;
}

#sidebar .nav-link.active {
  color: #fff;
  background-color: #0d6efd;
  font-weight: 500;
}

/* Submenu links */
#sidebar .nav-link.collapsed {
  color: #495057;
}

#sidebar .ms-3 .nav-link {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

#sidebar .ms-3 .nav-link.active {
  background-color: #0a58ca;
}

/* Icons */
#sidebar .bi {
  margin-right: 0.5rem;
}

/* Main content offset */
.main-content {
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #sidebar {
    width: 100%;
    position: relative;
  }

  .main-content {
    margin-left: 0;
  }

  #sidebar.collapse:not(.show) {
    display: none;
  }

  /* Mobile: Remove main-content margin */
  .main-content {
    margin-left: 0;
    padding-top: 4rem; /* Space for mobile toggle button */
  }
}

/* Divider styling */
#sidebar hr {
  border-color: #dee2e6;
  opacity: 0.5;
}

/* Mobile menu toggle button */
@media (max-width: 767.98px) {
  .main-content {
    padding-top: 4rem;
  }
}

/* Offcanvas sidebar styling for mobile */
.offcanvas #sidebar {
  position: relative;
  width: 100%;
  height: auto;
  box-shadow: none;
  border: none;
}
