/* ═══════════════════════════════════════════════════════════════
   AEGIS Shield — Sidebar
   Navigation, Logo, Theme Switcher, Status
   Author: Claude & Tom Sanders | Silicon Networks
   ═══════════════════════════════════════════════════════════════ */

/* ── SIDEBAR CONTAINER ── */
#aegis-sidebar {
  width: 280px;
  flex-shrink: 0;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--aegis-glass-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: width 0.3s ease, padding 0.3s ease;
  overflow-y: auto;
}

/* ── HAUPT-SIDEBAR COLLAPSED ── */
#aegis-sidebar.collapsed {
  width: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-right: none;
}

/* ── SIDEBAR TOGGLE (Flex-Item im Email-Panel, steuert Haupt-Nav) ── */
.aegis-sidebar-toggle {
  width: 28px; height: 28px; min-width: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(0,201,167,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin: 0 5px -30px -18px;
  transition: background 0.2s;
}
.aegis-sidebar-toggle:hover {
  background: transparent; border-color: #00c9a7;
}
.aegis-sidebar-toggle svg {
  width: 14px; height: 14px; stroke: #00c9a7; fill: none;
  stroke-width: 2.5; transition: transform 0.3s;
}
.aegis-sidebar-toggle:hover svg { stroke: #fff; }
.aegis-sidebar-toggle.collapsed svg { transform: rotate(180deg); }

/* ── LOGO ── */
.aegis-logo {
  position: relative;
  width: 100%;
  height: 100px;  margin-bottom: 12px;
  -webkit-app-region: drag;
}

.aegis-logo-shield {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.aegis-logo-shield svg {
  width: 100%;
  height: 100%;
}

.aegis-logo-text-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
}

.aegis-logo-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;  white-space: nowrap;
  line-height: 24px;
}

.aegis-logo-name {
  color: var(--aegis-text);
}

.aegis-logo-brand {
  color: var(--aegis-accent);
}

/* ── NAVIGATION ITEMS ── */
.aegis-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  font-size: 13px;
  color: var(--aegis-text-soft);
}

.aegis-nav-item:hover {
  background: rgba(0,201,167,0.08);
}

.aegis-nav-item.active {  background: rgba(0, 212, 255, 0.12);
  border-left-color: var(--aegis-accent);
  color: var(--aegis-text);
  font-weight: 600;
}

.aegis-nav-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── THEME SWITCHER ── */
.aegis-theme-wrap {
  padding: 12px 8px;
  border-top: 1px solid var(--aegis-glass-border);
}

.aegis-theme-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--aegis-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.aegis-theme-dots {
  display: flex;  gap: 6px;
}

.aegis-theme-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.aegis-theme-dot.active {
  border-color: var(--aegis-accent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.aegis-theme-dot[data-theme="frost"] {
  background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
}

.aegis-theme-dot[data-theme="slate"] {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.aegis-theme-dot[data-theme="obsidian"] {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.aegis-theme-dot[data-theme="space"] {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.aegis-theme-dot[data-theme="charcoal"] {
  background: linear-gradient(135deg, #2d2d2d, #171717);
}

.aegis-theme-dot[data-theme="porcelain"] {
  background: linear-gradient(135deg, #f4f4f4, #e0e0e0);
}

.aegis-theme-dot[data-theme="jade"] {
  background: linear-gradient(135deg, #5aaa6a, #3a7a4a);
}

.aegis-theme-dot[data-theme="aurora"] {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
}

/* ── STATUS INDICATOR ── */
.aegis-status {  padding: 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.aegis-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aegis-success);
  box-shadow: 0 0 8px var(--aegis-success);
  animation: aegisPulse 2s infinite;
}


/* ── TAG FILTER ── */
.aegis-tag-clear {
  margin-left: auto;
  font-size: 14px;
  color: var(--aegis-text-muted);
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.aegis-tag-clear:hover { opacity: 1; color: var(--aegis-accent); }

.aegis-tag-filter-item.active {
  background: var(--aegis-glass-hover);
  border-left: 3px solid var(--aegis-accent);
}

