/* Feedback Widget Styles */
.feedback-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Feedback Button */
.feedback-button {
  width: 60px;
  height: 60px;
  background: var(--primary, #00d1ff);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  color: var(--background, #0a0a0f);
}

.feedback-button:hover {
  transform: scale(1.05);
  background: var(--primary-hover, #33daff);
}

.feedback-button.active {
  transform: scale(0.95);
}

.feedback-button svg {
  width: 28px;
  height: 28px;
  fill: var(--background, #0a0a0f);
}

/* Feedback Widget */
.feedback-widget {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 320px;
  background: var(--card-bg, rgba(16, 16, 24, 0.95));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 20px;
  transform: scale(0.9);
  opacity: 0;
  visibility: hidden;
  transform-origin: bottom right;
  transition: all 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

.feedback-widget.active {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
}

.feedback-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text, #ffffff);
  margin: 0;
}

.feedback-close {
  background: none;
  border: none;
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.feedback-close:hover {
  color: var(--primary, #00d1ff);
}

.feedback-close svg {
  width: 20px;
  height: 20px;
}

/* Form Styles */
.feedback-form {
  color: var(--text, #ffffff);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--text, #ffffff);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
  border-radius: 6px;
  color: var(--text, #ffffff);
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary, #00d1ff);
  box-shadow: 0 0 0 2px rgba(0, 209, 255, 0.2);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* Rating Stars */
.rating-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.rating-star {
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.rating-star:hover,
.rating-star.hover {
  color: #ffb800;
}

.rating-star.active {
  color: #ffb800;
}

/* Submit Button */
.submit-button {
  background: var(--primary, #00d1ff);
  color: var(--background, #0a0a0f);
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.submit-button:hover {
  background: var(--primary-hover, #33daff);
  transform: translateY(-2px);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Type-specific fields */
.feedback-type-field {
  display: none;
}

/* Success and Error Messages */
.feedback-message {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  display: none;
}

.feedback-success {
  background: rgba(0, 224, 150, 0.2);
  color: #00e096;
  border: 1px solid rgba(0, 224, 150, 0.3);
}

.feedback-error {
  background: rgba(255, 0, 0, 0.2);
  color: #ff5555;
  border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 480px) {
  .feedback-widget {
    width: 280px;
    right: 0;
  }

  .feedback-button {
    width: 50px;
    height: 50px;
  }

  .feedback-button svg {
    width: 24px;
    height: 24px;
  }
}