/* Feedback FAB */
.feedback-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-color));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 44, 85, 0.4);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 44, 85, 0.6);
}
.feedback-fab:active {
  transform: translateY(0);
}

/* Feedback Modal */
.feedback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
.feedback-modal.active {
  display: flex;
}
.feedback-content {
  background: #111;
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}
.feedback-content h2 {
  color: white;
  font-size: 1.3rem;
  margin: 0;
}
.feedback-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 10px 0 15px 0;
  line-height: 1.4;
}
.feedback-content textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  min-height: 80px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feedback-content textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}
.feedback-actions {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.feedback-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.feedback-btn:active {
  opacity: 0.8;
}
.feedback-btn.submit {
  background: var(--accent-color);
  color: white;
}
@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .feedback-fab {
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: 15px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

.feedback-list {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  flex-grow: 1;
  min-height: 150px;
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-list::-webkit-scrollbar {
  width: 6px;
}
.feedback-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.feedback-item {
  background: rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ddd;
}
.feedback-item.new-item {
  animation: slideDown 0.3s ease-out;
  background: rgba(255, 44, 85, 0.15);
  border: 1px solid rgba(255, 44, 85, 0.3);
}

.fb-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.fb-text {
  word-wrap: break-word;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
