/* Flag Modal Styles */
.flag-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.flag-modal-content {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
}

.flag-modal h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.flag-modal p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.flag-reasons {
  margin-bottom: 1.5rem;
}

.flag-reason {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.flag-reason:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-color);
}

.flag-reason input[type="radio"] {
  margin-right: 0.75rem;
  accent-color: var(--brand-color);
}

.flag-reason label {
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text-primary);
  flex: 1;
}

.flag-description {
  margin-bottom: 1.5rem;
}

.flag-description label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.flag-description textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.875rem;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.flag-description textarea:focus {
  outline: none;
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.flag-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.flag-modal-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.flag-modal-btn-cancel {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.flag-modal-btn-cancel:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.flag-modal-btn-submit {
  background-color: #ef4444;
  color: white;
}

.flag-modal-btn-submit:hover {
  background-color: #dc2626;
}

.flag-modal-btn-submit:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Animation for modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.flag-modal-content {
  animation: fadeIn 0.2s ease-out;
}

/* Responsive design */
@media (max-width: 640px) {
  .flag-modal {
    padding: 1rem;
  }
  
  .flag-modal-content {
    padding: 1.5rem;
  }
  
  .flag-modal-actions {
    flex-direction: column;
  }
  
  .flag-modal-btn {
    width: 100%;
  }
}
