.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; }
}


/* Fullscreen dark overlay */
.exit-modal {
  display: none;               /* hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); /* dark overlay */
  justify-content: center;     /* center horizontally */
  align-items: center;         /* center vertically */
}

/* When .show is added, modal becomes visible */
.exit-modal.show {
  display: flex;
}

/* White popup box */
.exit-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 420px;
  max-width: 95%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeInUp 0.3s ease-out;
}

/* Close button */
.exit-modal-close {
  position: absolute;
  right: 12px; top: 10px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

/* Stars */
.stars {
  display: flex;
  gap: 8px;
  font-size: 28px;
  cursor: pointer;
  margin-bottom: 12px;
}
.star { color: #ccc; transition: color 0.2s; }
.star:hover,
.star.selected { color: gold; }

/* Simple fade animation */
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.rating-stars {
  display: flex;
  gap: 8px;
  font-size: 28px;
  cursor: pointer;
  margin: 8px 0;
}
.rating-stars .star {
  color: #ccc;
  transition: color 0.2s;
}
.rating-stars .star.selected,
.rating-stars .star:hover,
.rating-stars .star:hover ~ .star {
  color: gold;
}

.error {
    color: red !important;
}

/* star-rating.css */
.star-rating {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
}

.star-rating .star {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #bdbdbd; /* empty star color (grey) */
}

/* filled stars */
.star-rating .star.filled,
.star-rating .star:focus.filled {
  color: #ffc107 !important; /* gold */
}

/* focus outline for keyboard users */
.star-rating .star:focus {
  outline: 2px solid #9bd;
  outline-offset: 2px;
}
