/* ============================================================
   Agent X7 Sidebar Styles
   ============================================================ */

/* Menu button (floating, shown when sidebar closed) */
.x7-menu-button {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1100;
  width: 40px;
  height: 40px;
  background: rgba(0,255,178,0.12);
  border: 1px solid rgba(0,255,178,0.35);
  border-radius: 8px;
  color: #00ffb2;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}
.x7-menu-button:hover {
  background: rgba(0,255,178,0.22);
  box-shadow: 0 0 12px rgba(0,255,178,0.3);
}
.x7-menu-button.open {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

/* Overlay */
.x7-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.x7-sidebar-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Sidebar panel */
.x7-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 86vw);
  height: 100vh;
  background: #070d12;
  border-right: 1px solid rgba(0,255,178,0.25);
  box-shadow: 4px 0 32px rgba(0,255,178,0.08);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.x7-sidebar.open {
  transform: translateX(0);
}

/* Sidebar header */
.x7-sidebar-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(0,255,178,0.15);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}
.x7-sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.x7-sidebar-brand .x7-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #00ffb2;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(0,255,178,0.4);
}
.x7-sidebar-brand .x7-brand-status {
  font-size: 10px;
  color: #00ffb2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.x7-sidebar-brand .x7-brand-meta {
  font-size: 10px;
  color: #8899aa;
  margin-top: 2px;
}
.x7-sidebar-close {
  background: none;
  border: none;
  color: #8899aa;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
  line-height: 1;
}
.x7-sidebar-close:hover { color: #00ffb2; }

/* Nav links */
.x7-sidebar-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
}
.x7-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: #c8d8e8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
  border-left: 3px solid transparent;
}
.x7-sidebar-link:hover {
  background: rgba(0,255,178,0.08);
  color: #00ffb2;
  border-left-color: #00ffb2;
  text-decoration: none;
}
.x7-sidebar-link .x7-link-tag {
  margin-left: auto;
  font-size: 10px;
  color: #8899aa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Sidebar footer */
.x7-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(0,255,178,0.1);
  font-size: 11px;
  color: #8899aa;
  flex-shrink: 0;
}
