/* Bottom Dock Container Info Pill */
#analysis-info {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 12px;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: fadeIn 0.3s ease;
  max-width: 80%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Analysis Sidebar Panel */
.analysis-sidebar-panel {
  position: fixed;
  top: 100px;
  left: 20px;
  width: 440px;
  height: calc(100vh - 120px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  z-index: 2000;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 1);
  pointer-events: auto;
}

.analysis-sidebar-panel.active {
  transform: translateX(0);
  box-shadow: 30px 0 60px -20px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.analysis-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
}

.analysis-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.analysis-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.analysis-content::-webkit-scrollbar {
  width: 6px;
}
.analysis-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.btn-close-analysis {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.btn-close-analysis:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--danger-color);
}

/* Dark Mode */
[data-theme="dark"] .analysis-sidebar-panel {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 20px 40px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .analysis-header {
  background: rgba(30, 41, 59, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .btn-close-analysis {
  color: #94a3b8;
}
[data-theme="dark"] .btn-close-analysis:hover {
  color: #fb7185;
  background: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] #analysis-info {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
