.voice-search-dialog {
  text-align: center;
}
#voice-input {
  width: 90%;
  margin: 10px 0;
}
#voice-results ul {
  list-style: none;
  padding: 0;
}
#voice-results li {
  margin: 5px 0;
}

/* Popup styling */
.voice-search-dialog {
  text-align: center;
  padding: 15px;
}

#voice-popup {
  padding: 15px;
}

.voice-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.voice-input {
  width: 90%;
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.voice-btn {
  margin-top: 5px;
  padding: 8px 15px;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}

.voice-btn:hover {
  background: #0056b3;
}

/* Results styling */
.voice-results {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2-column grid */
  gap: 12px;
  text-align: left;
}

.voice-card {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.voice-card .voice-type {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.voice-card .voice-title a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #222;
}

.voice-card .voice-title a:hover {
  color: #007bff;
}

.no-results, .error-msg, .loading-msg {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
}

/* Dialog overall */
.voice-search-dialog {
  font-family: Arial, sans-serif;
}

/* Title bar */
.voice-search-dialog .ui-dialog-titlebar {
  background: #007bff;   /* Blue background */
  color: #fff;           /* White text */
  font-weight: bold;
  padding: 10px;
  border: none;
  border-radius: 6px 6px 0 0;
}

/* Title text */
.voice-search-dialog .ui-dialog-title {
  font-size: 16px;
  color: #fff;
}

/* X button */
.voice-search-dialog .ui-dialog-titlebar-close {
  background: transparent;
  border: none;
}

.voice-search-dialog .ui-dialog-titlebar-close .ui-icon {
  background-image: none !important; /* remove default jQuery icon */
  text-indent: 0 !important;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.voice-search-dialog .ui-dialog-titlebar-close::after {
  content: "✕";   /* Unicode X */
  color: #fff;
  font-size: 18px;
}

/* Popup body */
#voice-popup {
  padding: 15px;
  text-align: center;
}

/* Input box */
#voice-input {
  width: 90%;
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Button */
.voice-btn {
  margin-top: 5px;
  padding: 8px 15px;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}

.voice-btn:hover {
  background: #0056b3;
}

/* Results */
.voice-results {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.voice-card {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.voice-title a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #222;
}

.voice-title a:hover {
  color: #007bff;
}

/* Messages */
.no-results,
.error-msg,
.loading-msg {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  color: #444;
}
.voice-status {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
}

.listening {
  color: red;
  animation: pulse 1s infinite;
}

.processing {
  color: #007bff;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}
