/* Feedback Modal Styles */
.feedback-modal-content {
  max-width: 500px !important;
  margin: 5vh auto;
}

.feedback-modal-content .modal-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px 12px 0 0;
}

.feedback-modal-content .modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.feedback-modal-content .close-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.feedback-modal-content .close-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.feedback-modal-content .modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.feedback-modal-content .form-group {
  margin-bottom: 1.5rem;
}

.feedback-modal-content .form-group:last-child {
  margin-bottom: 0;
}

.feedback-modal-content label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.feedback-modal-content .optional {
  color: #6b7280;
  font-weight: 400;
  font-size: 0.875rem;
}

.feedback-modal-content select,
.feedback-modal-content input[type="text"],
.feedback-modal-content textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.feedback-modal-content select:focus,
.feedback-modal-content input[type="text"]:focus,
.feedback-modal-content textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.feedback-modal-content textarea {
  resize: vertical;
  min-height: 120px;
}

.feedback-modal-content .character-count {
  text-align: right;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.feedback-modal-content .feedback-info {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.feedback-modal-content .feedback-info p {
  margin: 0;
  font-size: 0.875rem;
  color: #4b5563;
  display: flex;
  align-items: center;
}

.feedback-modal-content .modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-radius: 0 0 12px 12px;
}

.feedback-modal-content .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.feedback-modal-content .btn-secondary {
  background: #f9fafb;
  color: #374151;
  border: 1px solid #d1d5db;
}

.feedback-modal-content .btn-secondary:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.feedback-modal-content .btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
}

.feedback-modal-content .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.feedback-modal-content .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.feedback-modal-content .spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.feedback-modal-content .feedback-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.feedback-modal-content .feedback-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.feedback-modal-content .feedback-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Dark theme support */
[data-theme="dark"] .feedback-modal-content .modal-body {
  background: #1f2937;
  color: #f9fafb;
}

[data-theme="dark"] .feedback-modal-content label {
  color: #f9fafb;
}

[data-theme="dark"] .feedback-modal-content .optional {
  color: #9ca3af;
}

[data-theme="dark"] .feedback-modal-content select,
[data-theme="dark"] .feedback-modal-content input[type="text"],
[data-theme="dark"] .feedback-modal-content textarea {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

[data-theme="dark"] .feedback-modal-content select:focus,
[data-theme="dark"] .feedback-modal-content input[type="text"]:focus,
[data-theme="dark"] .feedback-modal-content textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .feedback-modal-content .character-count {
  color: #9ca3af;
}

[data-theme="dark"] .feedback-modal-content .feedback-info {
  background: #374151;
}

[data-theme="dark"] .feedback-modal-content .feedback-info p {
  color: #d1d5db;
}

[data-theme="dark"] .feedback-modal-content .modal-footer {
  border-color: #4b5563;
  background: #1f2937;
}

[data-theme="dark"] .feedback-modal-content .btn-secondary {
  background: #374151;
  color: #f9fafb;
  border-color: #4b5563;
}

[data-theme="dark"] .feedback-modal-content .btn-secondary:hover:not(:disabled) {
  background: #4b5563;
  border-color: #6b7280;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .feedback-modal-content {
    margin: 2vh auto;
    max-width: 95% !important;
  }
  
  .feedback-modal-content .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .feedback-modal-content .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
  }
  
  .feedback-modal-content .modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column-reverse;
  }
  
  .feedback-modal-content .btn {
    width: 100%;
    justify-content: center;
  }
}
