/* ========================================
   FEEDBACK BUTTON (Floating)
   ======================================== */

.feedback-btn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-active) 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(123, 168, 46, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 999;
}

.feedback-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(123, 168, 46, 0.5);
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary-active) 100%);
}

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

.feedback-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
}

/* ========================================
   FEEDBACK MODAL OVERLAY
   ======================================== */

.feedback-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: feedbackFadeIn 0.2s ease;
}

.feedback-modal-overlay.active {
  display: flex;
}

@keyframes feedbackFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   FEEDBACK MODAL
   ======================================== */

.feedback-modal {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: feedbackSlideUp 0.3s ease;
}

@keyframes feedbackSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   FEEDBACK MODAL HEADER
   ======================================== */

.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid #e0e0e0;
}

.feedback-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
}

.feedback-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.feedback-modal-close:hover {
  background: #f5f5f5;
}

.feedback-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: #666;
}

/* ========================================
   FEEDBACK MODAL BODY
   ======================================== */

.feedback-modal-body {
  padding: 28px;
}

.feedback-textarea {
  width: 100%;
  min-height: 180px;
  max-height: 400px;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(123, 168, 46, 0.1);
}

.feedback-textarea::placeholder {
  color: #999;
}

.feedback-char-count {
  margin-top: 8px;
  text-align: right;
  font-size: 13px;
  color: #999;
}

.feedback-char-count.warning {
  color: #FF9800;
}

.feedback-char-count.error {
  color: #F44336;
}

/* ========================================
   FEEDBACK MODAL FOOTER
   ======================================== */

.feedback-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.feedback-btn-cancel,
.feedback-btn-send {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.feedback-btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.feedback-btn-cancel:hover {
  background: #e0e0e0;
}

.feedback-btn-send {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(123, 168, 46, 0.3);
}

.feedback-btn-send:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(123, 168, 46, 0.4);
}

.feedback-btn-send:active {
  transform: scale(0.98);
}

.feedback-btn-send:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

/* ========================================
   FEEDBACK TOAST NOTIFICATION
   ======================================== */

.feedback-toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10001;
  animation: feedbackToastSlideIn 0.3s ease;
  max-width: 400px;
}

@keyframes feedbackToastSlideIn {
  from {
    transform: translateX(120%);
  }
  to {
    transform: translateX(0);
  }
}

.feedback-toast.success {
  border-left: 4px solid var(--color-primary);
}

.feedback-toast.error {
  border-left: 4px solid #F44336;
}

.feedback-toast-icon {
  flex-shrink: 0;
}

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

.feedback-toast.success .feedback-toast-icon svg {
  stroke: var(--color-primary);
}

.feedback-toast.error .feedback-toast-icon svg {
  stroke: #F44336;
}

.feedback-toast-message {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .feedback-btn {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

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

  .feedback-modal {
    max-width: 100%;
    margin: 0 16px;
  }

  .feedback-modal-header {
    padding: 20px;
  }

  .feedback-modal-body {
    padding: 20px;
  }

  .feedback-modal-footer {
    padding: 16px 20px;
  }

  .feedback-toast {
    bottom: 80px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
}
