/* ==========================================================================
   VRM Number Plate Lookup - Shared styles
   ========================================================================== */

.vrm-plate-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
}
.vrm-plate {
  display: flex;
  align-items: center;
  height: 56px;
  background: #f7d616;
  border-radius: 8px;
  padding: 0 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border: 1px solid #666;
  width: 100%;
  max-width: 400px;
}
.vrm-plate-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
  background: #003399;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  border-radius: 2px;
  flex-shrink: 0;
  margin-left: 2px;
}
.vrm-plate input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000;
  padding: 0 8px;
  height: 100%;
}
.vrm-plate input::placeholder {
  color: rgba(0,0,0,0.25);
  font-weight: 600;
}
.vrm-plate input:focus::placeholder {
  color: transparent;
}
.vrm-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}
.vrm-search-btn:hover {
  background: #222;
}

/* Mobile VRM plate adjustments */
@media (max-width: 767px) {
  .vrm-plate-wrapper {
    padding: 0 15px;
  }
  .vrm-plate {
    height: 48px;
    padding: 0 4px;
  }
  .vrm-plate-badge {
    width: 30px;
    font-size: 11px;
  }
  .vrm-plate input {
    font-size: 20px;
    letter-spacing: 1px;
  }
  .vrm-search-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* VRM Error */
.vrm-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fef3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 13px;
  color: #856404;
  margin-top: 10px;
}
.vrm-error button {
  margin-left: auto;
  background: none;
  border: none;
  color: #856404;
  cursor: pointer;
  padding: 0;
}

/* VRM Dropdown */
.vrm-dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 130%;
  max-width: 520px;
  margin-top: 15px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  text-align: left;
  z-index: 1000;
}
@media (max-width: 767px) {
  .vrm-dropdown {
    width: 100%;
    max-width: 100%;
  }
}
.vrm-dropdown-accent {
  height: 4px;
  background: #C23F37;
}
.vrm-summary {
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}
.vrm-summary-reg {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
}
.vrm-summary-details {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}
.vrm-hint {
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #666;
}
.vrm-hint i {
  color: #999;
  margin-right: 6px;
}
.vrm-candidates {
  max-height: 280px;
  overflow-y: auto;
}
.vrm-candidate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.vrm-candidate:hover {
  background: #f0fff4;
  text-decoration: none;
  color: inherit;
}
.vrm-candidate-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  flex-shrink: 0;
}
.vrm-candidate-logo-placeholder {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
  flex-shrink: 0;
}
.vrm-candidate-info {
  flex: 1;
  min-width: 0;
}
.vrm-candidate-name {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}
.vrm-candidate-arrow {
  color: #ccc;
  flex-shrink: 0;
}
.vrm-candidate:hover .vrm-candidate-arrow {
  color: #888;
}
.vrm-footer {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #eee;
}
.vrm-footer-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.vrm-footer-btn i {
  color: #f5a5a5;
  margin-top: 2px;
}
.vrm-footer-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}
.vrm-footer-desc {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* No match state */
.vrm-no-match {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
}
.vrm-no-match-icon {
  color: #fca5a5;
  margin-top: 2px;
}
.vrm-no-match-icon i {
  font-size: 14px;
}
.vrm-no-match-content {
  flex: 1;
}
.vrm-no-match-title {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
}
.vrm-no-match-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.4;
}
.vrm-no-match-desc a {
  color: #C23F37;
  text-decoration: none;
}
.vrm-no-match-desc a:hover {
  text-decoration: underline;
}
.vrm-no-match-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: #C23F37;
  cursor: pointer;
}
.vrm-no-match-btn:hover {
  color: #a33530;
}
.vrm-no-match-btn i {
  font-size: 11px;
  opacity: 0.8;
}

/* VRM Loading Panel */
.vrm-loading-bar {
  height: 4px;
  width: 100%;
  background: #f5c6c4;
  position: relative;
  overflow: hidden;
}
.vrm-loading-bar-inner {
  position: absolute;
  inset: 0;
  width: 33%;
  background: #C23F37;
  border-radius: 999px;
  animation: vrm-loading-bar 1.2s ease-in-out infinite;
}
@keyframes vrm-loading-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.vrm-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}
.vrm-loading-icon {
  font-size: 30px;
  color: #C23F37;
}
.vrm-loading-title {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.vrm-loading-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: #999;
  animation: vrm-pulse 2s ease-in-out infinite;
}
@keyframes vrm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.vrm-search-btn.is-loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.vrm-plate input:disabled {
  font-weight: 700;
  animation: vrm-pulse 2s ease-in-out infinite;
}

/* Page Loading Overlay */
.page-loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.page-loading-overlay.active {
  display: flex;
}
.page-loading-spinner {
  font-size: 70px;
  color: #C23F37;
  animation: spin 2s linear infinite;
  filter: drop-shadow(0 4px 8px rgba(194, 63, 55, 0.3));
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.page-loading-text {
  margin-top: 20px;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
