/* Chart Container Styles */
.chart-container {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.chart-container h5 {
  margin: 0 0 8px 0;
}

.chart-container canvas {
  display: block;
  width: 100% !important;
}

/* ====== AI Summary Chat Styles ====== */
.ai-summary-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
}

.ai-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.ai-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #8b5cf6;
  background: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.ai-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border: 2px solid white;
  border-radius: 50%;
}

.ai-chat-bubble {
  position: relative;
  background: #ffffff;
  border-radius: 0 16px 16px 16px;
  padding: 14px 18px;
  flex-grow: 1;
  max-width: calc(100% - 120px);
  z-index: 1;
  cursor: pointer;
  overflow: hidden;
  /* Simple purple border with glow */
  border: 2px solid #8b5cf6;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  transition: box-shadow 0.3s ease;
}

.ai-chat-bubble:hover {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

/* Chat bubble arrow */
.ai-chat-bubble::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid #8b5cf6;
}

.ai-chat-bubble::after {
  content: '';
  position: absolute;
  top: 17px;
  left: -6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #ffffff;
}

/* Chat bubble arrow/pointer */
.ai-chat-bubble .ai-header::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #a78bfa;
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ai-name {
  font-weight: 600;
  color: #6d28d9;
  font-size: 0.85rem;
}

.ai-role {
  font-size: 0.7rem;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
}

.ai-content-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s step-start infinite;
  color: #8b5cf6;
  font-weight: 300;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.btn-read-more {
  display: block;
  margin-top: 10px;
  color: #8b5cf6;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-read-more:hover {
  color: #6d28d9;
  text-decoration: underline;
}

/* Tooltip Fix */
.tooltip-inner {
  color: #fff !important;
  background-color: #000 !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #000 !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #000 !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #000 !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #000 !important;
}

/* opportunity-card restructuring */
.opportunity-grid {
    margin-top: 1rem;
}

.opportunity-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    transition: all 0.3s ease-index;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.opp-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.opp-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.opp-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.2;
}

.opp-tickers-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opp-ticker-badge {
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.opp-ticker-badge:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
    transform: scale(1.05);
}

/* Strategy Specific Colors */
.opp-pullback .opp-icon-box { background: #eff6ff; color: #3b82f6; }
.opp-shark .opp-icon-box { background: #fffbeb; color: #d97706; }
.opp-bottom .opp-icon-box { background: #f0fdf4; color: #16a34a; }
.opp-breakout .opp-icon-box { background: #fef2f2; color: #dc2626; }

.blurred-ticker {
    filter: blur(2px);
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
    user-select: none;
    background: #f1f5f9;
}