/* PCLAR Suporte Remoto - Web Plugin & Widget */
:root {
  --pclar-primary: #0066cc;
  --pclar-primary-hover: #0052a3;
  --pclar-secondary: #00a86b;
  --pclar-secondary-hover: #008f5a;
  --pclar-dark: #1e293b;
  --pclar-light: #f8fafc;
  --pclar-border: #e2e8f0;
  --pclar-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --pclar-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Floating Launcher Button */
.pclar-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999990;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--pclar-primary) 0%, #004499 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
  font-family: var(--pclar-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.pclar-float-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.45);
  background: linear-gradient(135deg, #0077ee 0%, var(--pclar-primary) 100%);
}

.pclar-float-btn:active {
  transform: translateY(0) scale(0.98);
}

.pclar-float-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pclar-float-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.pclar-pulse {
  position: relative;
}

.pclar-pulse::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  border: 2px solid #ffffff;
  animation: pclar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pclar-ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Modal Overlay */
.pclar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999995;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 16px;
  box-sizing: border-box;
}

.pclar-overlay.pclar-active {
  opacity: 1;
  visibility: visible;
}

/* Modal Card */
.pclar-modal {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: var(--pclar-shadow);
  font-family: var(--pclar-font);
  color: var(--pclar-dark);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.pclar-overlay.pclar-active .pclar-modal {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.pclar-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #0056b3 0%, var(--pclar-primary) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.pclar-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pclar-logo-img {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 10px;
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
}

.pclar-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.pclar-subtitle {
  margin: 3px 0 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.pclar-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.pclar-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal Body */
.pclar-body {
  padding: 24px;
  overflow-y: auto;
}

/* Action Banner */
.pclar-action-box {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.pclar-action-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.pclar-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.pclar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  font-family: var(--pclar-font);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.pclar-btn-primary {
  background-color: var(--pclar-primary);
  color: #ffffff;
}

.pclar-btn-primary:hover {
  background-color: var(--pclar-primary-hover);
}

.pclar-btn-secondary {
  background-color: #ffffff;
  color: var(--pclar-primary);
  border: 1px solid #bfdbfe;
}

.pclar-btn-secondary:hover {
  background-color: #e0f2fe;
}

.pclar-btn-whatsapp {
  background-color: var(--pclar-secondary);
  color: #ffffff;
}

.pclar-btn-whatsapp:hover {
  background-color: var(--pclar-secondary-hover);
}

/* Steps List */
.pclar-steps {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pclar-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pclar-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pclar-step-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: #334155;
}

.pclar-step-text strong {
  color: #0f172a;
}

/* ID & Password Quick Send Form */
.pclar-form-card {
  background: #f8fafc;
  border: 1px solid var(--pclar-border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 18px;
}

.pclar-form-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.pclar-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.pclar-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.pclar-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font-family: monospace, var(--pclar-font);
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
}

.pclar-input:focus {
  border-color: var(--pclar-primary);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

.pclar-footer-note {
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}
