/* MODULE: Shared | FILE: sidebar.css */

.sidebar {
  width: 240px;
  min-height: 100vh;
  background: #131729;
  border-right: 1px solid #1e2443;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
}

.sidebar__brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #1e2443;
}

.sidebar__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #635bff;
}

.sidebar__nav {
  flex: 1;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #8b8fa3;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar__link:hover {
  background: #1e2443;
  color: #c4c7d4;
}

.sidebar__link--active {
  background: rgba(99, 91, 255, 0.15);
  color: #635bff;
  font-weight: 600;
}

.sidebar__icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.sidebar__footer {
  padding: 1rem;
  border-top: 1px solid #1e2443;
}

.sidebar__user {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.sidebar__email {
  font-size: 0.75rem;
  color: #c4c7d4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__role {
  font-size: 0.6875rem;
  color: #8b8fa3;
  text-transform: capitalize;
}

.sidebar__logout {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #8b8fa3;
  background: #1e2443;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar__logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Main content area offset */
.app-shell {
  margin-left: 240px;
  min-height: 100vh;
}
