/**
 * VanGlass Conversations - Scoped Frontend CSS
 * Modern VanGlass Brand Identity: Navy (#1b4369), Teal (#0284c7 / #0ea5e9), and White
 * Zero layout shift (CLS = 0)
 */

#vg-launcher-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999990;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.vg-teaser-card {
  position: relative;
  max-width: 300px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid #334155;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.vg-teaser-card:hover {
  border-color: #38bdf8;
}

.vg-teaser-close {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 50%;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.vg-teaser-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.vg-teaser-text {
  font-size: 12px;
  line-height: 1.35;
  color: #cbd5e1;
  font-weight: 500;
}

.vg-launcher-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b4369 0%, #16324f 50%, #0f172a 100%);
  color: #ffffff;
  border: 2px solid #38bdf8;
  box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  padding: 2px;
}

.vg-launcher-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px -3px rgba(27, 67, 105, 0.6);
}

.vg-launcher-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.vg-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 999998;
}

.vg-drawer-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: calc(100% - 40px);
  max-width: 440px;
  height: 90vh;
  max-height: 740px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(226, 232, 240, 0.9);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.vg-drawer-header {
  background: linear-gradient(135deg, #16324f 0%, #1b4369 100%);
  padding: 16px 20px;
  color: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vg-drawer-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vg-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  position: relative;
}

.vg-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  background: #f8fafc;
}

.vg-path-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.vg-path-card:hover {
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -2px rgba(2, 132, 199, 0.12);
}

.vg-path-card.featured {
  border: 2px solid rgba(2, 132, 199, 0.4);
}

.vg-path-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.vg-path-badge.blue {
  background: #e0f2fe;
  color: #0369a1;
}

.vg-path-badge.teal {
  background: #ccfbf1;
  color: #0f766e;
}

.vg-path-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.vg-path-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.vg-primary-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #1b4369 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.vg-primary-btn:hover {
  opacity: 0.95;
}

.vg-form-group {
  margin-bottom: 12px;
}

.vg-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.vg-input, .vg-select, .vg-textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
}

.vg-input:focus, .vg-select:focus, .vg-textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}
