.remote-intro { padding: 14px 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; line-height: 1.5; font-size: 0.86rem; color: #1e3a8a; }
.remote-intro strong { display: block; font-size: 0.95rem; margin-bottom: 4px; color: #1e40af; }
.remote-intro p { margin: 4px 0 6px; color: #1e3a8a; }
.remote-intro small { display: block; color: #3b82f6; font-size: 0.78rem; }
.remote-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.remote-toolbar input { flex: 1; min-width: 180px; }
#remoteControlStatus { margin: 12px 0; line-height: 1.5; color: #334155; font-size: 0.85rem; padding: 10px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-weight: 500; }
#remoteControlStatus.remote-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.remote-control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 14px; }
.remote-control-card { border: 1px solid #e2e8f0; padding: 16px; border-radius: 12px; background: #fff; min-width: 0; transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.04); position: relative; }
.remote-control-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.remote-control-card.card-modified { border-color: #3b82f6; background: #f8faff; box-shadow: 0 0 0 1px #3b82f6, 0 4px 12px rgba(59, 130, 246, 0.12); }
.remote-control-card h4 { margin: 8px 0 6px; font-size: 0.92rem; font-weight: 700; color: #0f172a; overflow-wrap: anywhere; }
.remote-control-group { display: inline-block; background: #f1f5f9; color: #475569; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.remote-current { font-size: 0.82rem; margin: 8px 0; padding: 6px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; font-family: var(--font-mono, monospace); color: #334155; overflow-wrap: anywhere; }
.badge-live { display: inline-block; background: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16, 185, 129, 0.25); font-size: 0.68rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.remote-control-card .form-control { width: 100%; min-width: 0; font-size: 0.88rem; transition: border-color 0.2s ease, background 0.2s ease; }
.remote-control-card .form-control:focus { border-color: #2563eb; background: #fff; }
.remote-control-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.remote-control-actions .btn { font-size: 0.8rem; padding: 6px 12px; transition: all 0.2s ease; }
.btn-ready { background: #0284c7 !important; border-color: #0284c7 !important; color: #fff !important; font-weight: 600 !important; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3) !important; animation: pulseReady 2s infinite ease-in-out; }
@keyframes pulseReady {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.remote-control-card .form-hint { display: block; margin-top: 8px; font-size: 0.74rem; color: #64748b; line-height: 1.4; }
.remote-history-item { font-size: 0.8rem; padding: 8px 0; border-bottom: 1px solid #e2e8f0; overflow-wrap: anywhere; color: #334155; }
.remote-control-grid [hidden] { display: none !important; }
#btnSaveInverterConfig[hidden] { display: none !important; }

/* Micro-animations and spinners for hardware operations */
.remote-btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: remoteSpin 0.75s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
}
.remote-btn-spinner-sm {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: remoteSpin 0.75s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
}
@keyframes remoteSpin {
  to { transform: rotate(360deg); }
}

/* Card Reading Loading State with subtle pulse */
.remote-control-card.card-reading {
  border-color: #60a5fa !important;
  background: #f0f7ff !important;
  box-shadow: 0 0 0 1px #93c5fd, 0 4px 14px rgba(37, 99, 235, 0.12) !important;
  animation: pulseReadingCard 1.8s infinite ease-in-out;
}
@keyframes pulseReadingCard {
  0%, 100% { border-color: #60a5fa; box-shadow: 0 0 0 1px #93c5fd, 0 4px 14px rgba(37, 99, 235, 0.12); }
  50% { border-color: #2563eb; box-shadow: 0 0 0 2px #60a5fa, 0 6px 18px rgba(37, 99, 235, 0.2); }
}

/* Badge Reading */
.badge-reading {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-loading {
  opacity: 0.85;
  cursor: wait !important;
}

