/* ===== Voice Agents Demo Layout ===== */

.upca-voice-demo {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.upca-voice-card {
  width: 100%;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  overflow: hidden;
}

/* Left panel */

.upca-voice-left {
  padding: 30px 26px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.upca-voice-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.upca-voice-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 20px;
}

.upca-agent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.upca-agent-option {
  text-align: left;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 11px 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  font-size: 13px;
}

.upca-agent-option .upca-agent-name {
  font-weight: 600;
  color: #111827;
}

.upca-agent-option .upca-agent-desc {
  font-size: 12px;
  color: #6b7280;
}

.upca-agent-option.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
  background: #eff6ff;
}

.upca-agent-option:hover {
  border-color: #93c5fd;
}

.upca-agent-details {
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  margin-top: auto;
}

.upca-details-title {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.upca-details-text {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
}

.upca-details-text.hidden {
  display: none;
}

/* Right panel */

.upca-voice-right {
  position: relative;
  padding: 30px 34px 26px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.75), #020617);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.upca-voice-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.95;
}

.upca-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.28);
}

.upca-status-label {
  font-weight: 500;
}

.upca-voice-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 42px 0 26px;
  text-align: center;
}

.upca-voice-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: visible;
}

.upca-voice-pulse {
  position: absolute;
  width: 130%;
  height: 130%;
  border-radius: inherit;
  border: 1px solid rgba(129, 140, 248, 0.7);
  animation: upca-pulse 2.1s ease-out infinite;
}

.upca-voice-inner-dot {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #e5e7eb;
}

.upca-voice-main-text {
  font-size: 14px;
  max-width: 280px;
  color: #e5e7eb;
  margin: 0;
}

.upca-start-call {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.upca-start-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.7);
  background: #1d4ed8;
}

.upca-call-icon {
  font-size: 16px;
}

.upca-call-hint {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 10px;
}

/* Mobile */

@media (max-width: 768px) {
  .upca-voice-card {
    grid-template-columns: 1fr;
  }

  .upca-voice-right {
    order: -1;
  }

  .upca-voice-demo {
    margin: 24px auto;
  }
}

/* Pulse animation */

@keyframes upca-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}
