/* Feedback Widget Styles */
.feedinbox-feedback-button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feedinbox-feedback-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.feedinbox-feedback-button:active {
  transform: translateY(0);
}

/* Modal overlay */
.feedinbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Modal container */
.feedinbox-modal {
  background: var(--feedinbox-bg-color, #ffffff);
  border-radius: var(--feedinbox-border-radius, 12px);
  padding: 24px;
  margin: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
}

/* Typography */
.feedinbox-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--feedinbox-text-color, #111827);
}

.feedinbox-description {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: var(--feedinbox-muted-color, #6b7280);
  line-height: 1.5;
}

/* Form styles */
.feedinbox-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedinbox-input,
.feedinbox-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--feedinbox-border-color, #e5e7eb);
  border-radius: var(--feedinbox-input-radius, 6px);
  font-size: 14px;
  background: var(--feedinbox-input-bg, #ffffff);
  color: var(--feedinbox-input-text, #111827);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.feedinbox-input:focus,
.feedinbox-textarea:focus {
  outline: none;
  border-color: var(--feedinbox-primary-color, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feedinbox-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* Priority selection */
.feedinbox-priority {
  margin: 16px 0;
}

.feedinbox-priority > label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--feedinbox-text-color, #374151);
}

.feedinbox-priority-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feedinbox-priority-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--feedinbox-border-color, #e5e7eb);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.feedinbox-priority-option:hover {
  background: var(--feedinbox-hover-color, #f9fafb);
  border-color: var(--feedinbox-primary-color, #3b82f6);
}

.feedinbox-priority-option input[type="radio"] {
  margin: 0;
}

.feedinbox-priority-option span {
  font-size: 14px;
  color: var(--feedinbox-text-color, #374151);
  user-select: none;
}

/* Checkbox */
.feedinbox-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
  cursor: pointer;
}

.feedinbox-checkbox input[type="checkbox"] {
  margin: 2px 0 0 0;
  cursor: pointer;
}

.feedinbox-checkbox span {
  font-size: 14px;
  color: var(--feedinbox-text-color, #374151);
  line-height: 1.4;
  user-select: none;
}

/* Actions */
.feedinbox-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.feedinbox-button {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
}

.feedinbox-button-primary {
  background: var(--feedinbox-primary-color, #3b82f6);
  color: white;
  border-color: var(--feedinbox-primary-color, #3b82f6);
}

.feedinbox-button-primary:hover:not(:disabled) {
  background: var(--feedinbox-primary-hover, #2563eb);
  border-color: var(--feedinbox-primary-hover, #2563eb);
}

.feedinbox-button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedinbox-button-secondary {
  background: transparent;
  color: var(--feedinbox-text-color, #374151);
  border-color: var(--feedinbox-border-color, #e5e7eb);
}

.feedinbox-button-secondary:hover {
  background: var(--feedinbox-hover-color, #f9fafb);
}

/* Success state */
.feedinbox-success {
  text-align: center;
  padding: 20px;
}

.feedinbox-success-icon {
  width: 48px;
  height: 48px;
  color: var(--feedinbox-success-color, #10b981);
  margin: 0 auto 16px;
  display: block;
}

.feedinbox-success p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--feedinbox-text-color, #111827);
}

/* Logo */
.feedinbox-logo {
  text-align: center;
  margin: 16px 0;
}

.feedinbox-logo-top {
  margin-bottom: 20px;
  margin-top: 0;
}

.feedinbox-logo-bottom {
  margin-top: 20px;
  margin-bottom: 0;
}

.feedinbox-logo img {
  max-width: 100%;
  height: auto;
}

/* Dark theme */
[data-theme="dark"] .feedinbox-modal {
  background: #1f2937;
  color: #f3f4f6;
}

[data-theme="dark"] .feedinbox-title {
  color: #f3f4f6;
}

[data-theme="dark"] .feedinbox-description {
  color: #9ca3af;
}

[data-theme="dark"] .feedinbox-input,
[data-theme="dark"] .feedinbox-textarea {
  background: #374151;
  border-color: #4b5563;
  color: #f3f4f6;
}

[data-theme="dark"] .feedinbox-input::placeholder,
[data-theme="dark"] .feedinbox-textarea::placeholder {
  color: #9ca3af;
}

[data-theme="dark"] .feedinbox-priority-option {
  border-color: #4b5563;
  background: #1f2937;
}

[data-theme="dark"] .feedinbox-priority-option:hover {
  background: #374151;
  border-color: #3b82f6;
}

[data-theme="dark"] .feedinbox-priority-option span {
  color: #e5e7eb;
}

[data-theme="dark"] .feedinbox-checkbox span {
  color: #e5e7eb;
}

[data-theme="dark"] .feedinbox-button-secondary {
  color: #e5e7eb;
  border-color: #4b5563;
}

[data-theme="dark"] .feedinbox-button-secondary:hover {
  background: #374151;
}

/* Responsive */
@media (max-width: 640px) {
  .feedinbox-feedback-button {
    width: 100%;
    padding: 14px 20px;
  }

  .feedinbox-modal {
    margin: 10px;
    padding: 20px;
  }

  .feedinbox-priority-options {
    flex-direction: column;
  }

  .feedinbox-actions {
    flex-direction: column-reverse;
  }

  .feedinbox-button {
    width: 100%;
    padding: 12px 20px;
  }
}