/**
 * 📁 파일 위치: /volume1/web/gpt/assets/proactive.css
 * ✅ 새 파일 추가
 *
 * 역할:
 * - AI 능동 제안 버블 스타일
 * - 기존 index.php inline style 분리
 */

.proactive-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 420px;
  max-width: calc(100vw - 48px);
  max-height: 70vh;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.45);
  z-index: 9999;
  overflow: hidden;
  animation: pbSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes pbSlideIn {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.pb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.pb-avatar { font-size: 22px; }

.pb-title {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
}

.pb-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pb-close:hover {
  background: rgba(0,0,0,0.2);
  opacity: 1;
}

.pb-body {
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}

.pb-body pre,
.pb-body code {
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
}

.pb-body pre {
  padding: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.pb-body pre code {
  white-space: pre-wrap;
}

.pb-body code {
  white-space: nowrap;
}

.pb-body h3 {
  font-size: 14px;
  margin: 12px 0 6px;
  color: #fde68a;
}

.pb-actions {
  display: flex;
  gap: 6px;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.pb-btn {
  flex: 1;
  min-width: 70px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.pb-btn-primary {
  background: #10b981;
  color: #fff;
}

.pb-btn-primary:hover { background: #059669; }

.pb-btn-secondary {
  background: rgba(255,255,255,0.9);
  color: #4338ca;
}

.pb-btn-secondary:hover { background: #fff; }

.pb-btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.pb-btn-ghost:hover {
  background: rgba(255,255,255,0.22);
}

.pb-dot-indicator {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: pbPulse 2s infinite;
  cursor: pointer;
  z-index: 9998;
}

@keyframes pbPulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70% { box-shadow: 0 0 0 14px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.pb-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pbSpin 0.8s linear infinite;
}

@keyframes pbSpin {
  to { transform: rotate(360deg); }
}
