/**
 * Feedback Widget Styles
 * Inline feedback rating component for chatbot
 */

.feedback-widget {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  max-width: 500px;
}

/* Header */
.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.feedback-header span {
  font-size: 14px;
  font-weight: 600;
  color: #333333;
}

.dismiss-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #999999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 1;
  transition: color 0.2s ease;
}

.dismiss-btn:hover {
  color: #333333;
}

.dismiss-btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Body */
.feedback-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Emoji Rating */
.emoji-rating {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.emoji-btn {
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.emoji-btn:hover {
  background: #e8f4ff;
  border-color: #007bff;
  transform: scale(1.1);
}

.emoji-btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.emoji-btn.selected {
  background: #007bff;
  border-color: #0056b3;
  transform: scale(1.15);
}

/* Optional Fields */
.optional-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.feedback-text {
  width: 100%;
  padding: 10px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  transition: border-color 0.2s ease;
}

.feedback-text:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.feedback-text::placeholder {
  color: #999999;
}

.feedback-contact {
  width: 100%;
  padding: 10px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.feedback-contact:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.feedback-contact::placeholder {
  color: #999999;
}

/* Submit Button */
.submit-btn {
  background: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-self: flex-start;
}

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

.submit-btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.submit-btn:active {
  background: #004085;
}

/* Success Message */
.success-message {
  text-align: center;
  color: #28a745;
  font-weight: 600;
  font-size: 14px;
  padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
  .feedback-widget {
    max-width: 100%;
    padding: 12px;
  }

  .emoji-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .feedback-header span {
    font-size: 13px;
  }

  .feedback-text,
  .feedback-contact,
  .submit-btn {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .emoji-rating {
    gap: 4px;
  }

  .emoji-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
