/* Quick Connect PWA — light theme; white form fields */

:root {
  color-scheme: light;
  --qc-input-bg: #ffffff;
  --qc-input-text: #0f172a;
  --qc-input-border: #e2e8f0;
}

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: inline-block; }

#htmx-indicator.htmx-request {
  display: block;
  transform: scaleX(1);
  animation: qc-progress 1s ease-in-out infinite;
}

@keyframes qc-progress {
  0% { transform: scaleX(0.15); opacity: 0.7; }
  50% { transform: scaleX(0.7); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.85; }
}

[x-cloak] { display: none !important; }

/* Force white inputs everywhere (overrides dark mode / autofill grey) */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
select,
textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0;
  -webkit-text-fill-color: #0f172a;
  caret-color: #0f172a;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22);
  border-color: #14b8a6 !important;
}

/* Chrome autofill stays white */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  transition: background-color 9999s ease-in-out 0s;
}

.glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 10px 28px -14px rgb(13 148 136 / 0.12);
}

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.2s ease-in-out infinite;
}

@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.htmx-added {
  animation: qc-fade-up 220ms ease both;
}

@keyframes qc-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
