/* Sidebar styles */
.sidebar {
  width: var(--dc-sidebar-width, 300px);
  min-height: 100vh;
  /* Base chrome surface. Military theme re-adds blur + camo border-right
     via the scoped .sidebar rule in theme-military.css. */
  background: var(--bg-chrome);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-expand {
  position: fixed;
  left: 10px;
  top: 20px;
  z-index: 1000;
  transition: transform 0.1s;
}

.sidebar-expand.mirrored {
  transform: scaleX(-1);
}

.sidebar-collapse {
  transition: transform 0.1s;
}

.sidebar.collapsed .sidebar-collapse {
  transform: scaleX(-1);
}

.logo {
  height: 32px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.logo i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.logo-text {
  color: white;
  font-weight: 500;
  font-size: 1.25rem;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid var(--cam-line);
}

.workspace-icon {
  width: 40px;
  height: 40px;
  background: #DC3545;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
  font-weight: 500;
}

.workspace-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.workspace-title {
  font-size: 0.875rem;
  color: var(--text-color);
}

.workspace-id {
  font-size: 0.75rem;
  color: #808080;
}

.sidebar-menu {
  flex-grow: 1;
}

.nav-link {
  color: #4b5563;
  padding: 0.75rem 1.25rem;
  text-align: left;
  transition: all 0.2s;
}

.nav-link:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.nav-link.active {
  background: #e5e7eb;
  color: #1f2937;
  font-weight: 500;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: #808080;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.menu-item:hover {
  background: var(--bg-surface);
  color: white;
}

.menu-item.active {
  background: var(--bg-surface);
  color: white;
}

.menu-item i {
  font-size: 1.25rem;
}

.menu-item span {
  flex-grow: 1;
}

.submenu {
  margin-top: 0.25rem;
  display: none;
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--cam-line);
}

.menu-item.active + .submenu {
  display: block;
}

.submenu-title {
  color: #808080;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0 0.75rem;
}

.submenu-item {
  color: #808080;
  text-decoration: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.25rem;
}

.submenu-item:hover {
  color: white;
  text-decoration: none;
  background: var(--bg-chrome);
}

.submenu-item.active {
  color: var(--accent);
  background: var(--bg-chrome);
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--cam-line);
  margin-top: 1rem;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: #808080;
  cursor: pointer;
  border-radius: 8px;
}

.profile-item:hover {
  background: var(--bg-surface);
  color: white;
}

.profile-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: white;
}

@media print {
  .sidebar,
  .sidebar-expand {
    display: none !important;
  }
}
