/* Demo Modal Styles
 * Shared styles for the demo provisioning modal across all PublicSite pages
 */

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-modal.hidden {
  display: none;
}

.demo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.demo-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.dark .demo-modal-content {
  background: #1F2A37;
  color: #fff;
}

.demo-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #637381;
}

.demo-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #111928;
}

.dark .demo-form label {
  color: #fff;
}

.demo-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #DFE4EA;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.dark .demo-form input {
  background: #374151;
  border-color: #374151;
  color: #fff;
}

.demo-form .hint {
  font-size: 0.875rem;
  color: #637381;
  margin-bottom: 1rem;
}

.demo-loading,
.demo-result,
.demo-error {
  text-align: center;
}

.demo-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #DFE4EA;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.demo-credentials {
  background: #F9FAFB;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: left;
}

.dark .demo-credentials {
  background: #374151;
}

.credential-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #DFE4EA;
}

.dark .credential-row {
  border-color: #4B5563;
}

.credential-row:last-child {
  border-bottom: none;
}

.credential-label {
  font-weight: 500;
}

.credential-value {
  font-family: monospace;
  cursor: pointer;
}

.credential-url {
  color: #667eea;
}

.demo-error {
  background: #FEE2E2;
  color: #991B1B;
  padding: 1rem;
  border-radius: 8px;
}

.expires-note {
  font-size: 0.875rem;
  color: #637381;
  margin: 1rem 0;
}
