.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  border-radius: 2px;
  width: 100%;
  max-width: 400px;
  max-height: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modern-modal.show .modal-content {
  transform: translateY(0);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.report-modal,
.share-modal,
.delete-confirmation-modal,
.modern-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: 1000000;
}

.report-modal-content,
.share-modal-content,
.delete-modal-content {
  background-color: white;
  border-radius: 12px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out;
}

.delete-modal-content {
  max-width: 400px;
  background: #f8f9fa;
}

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

.report-modal-header,
.share-modal-header,
.delete-modal-header,
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-modal-header {
  background: #f8f9fa;
}

.report-modal-header h3,
.share-modal-header h3,
.delete-modal-header h3,
.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.close-modal,
.close-share-modal,
.close-delete-modal {
  font-size: 24px;
  cursor: pointer;
  color: #777;
  transition: color 0.2s;
}

.close-modal:hover,
.close-share-modal:hover,
.close-delete-modal:hover {
  color: #333;
}

.report-modal-body,
.share-modal-body,
.delete-modal-body,
.modal-body {
  padding: 20px;
}

.delete-modal-body {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  text-align: center;
}

.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.report-reason {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.2s;
}

.report-reason:hover {
  background-color: #f0f0f0;
}

.report-reason input {
  margin-right: 12px;
}

.other-reason-container {
  margin-top: 15px;
}

.other-reason-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-family: inherit;
}

.report-modal-footer,
.delete-modal-footer,
.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid #eee;
  gap: 10px;
}

.delete-modal-footer {
  background: #f8f9fa;
}

.report-modal-footer button,
.delete-modal-footer button,
.modal-footer button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-report,
.cancel-delete,
.secondary-button {
  background-color: #f0f0f0;
  color: #333;
}

.cancel-report:hover,
.cancel-delete:hover,
.secondary-button:hover {
  background-color: #e0e0e0;
}

.submit-report {
  background-color: #ff4444;
  color: white;
}

.submit-report:hover {
  background-color: #cc0000;
}

.submit-report:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  border-radius: 8px;
  background-color: #f9f9f9;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.share-option:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.share-option i {
  font-size: 24px;
  margin-bottom: 8px;
}

.share-option[data-platform="whatsapp"] i {
  color: #25D366;
}

.share-option[data-platform="facebook"] i {
  color: #1877F2;
}

.share-option[data-platform="twitter"] i {
  color: #1DA1F2;
}

.share-option[data-platform="telegram"] i {
  color: #0088CC;
}

.share-option span {
  font-size: 12px;
  color: #555;
}

.share-link-container {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.share-link-input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  font-family: inherit;
  background-color: #f9f9f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-link-button {
  padding: 0 15px;
  border: none;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.copy-link-button:hover {
  background-color: #e0e0e0;
}

.copy-link-button i {
  color: #555;
}

.modern-modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modern-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-icon {
  margin-bottom: 16px;
}

.modal-icon svg {
  width: 48px;
  height: 48px;
}

.modal-body p {
  margin: 8px 0;
  color: #333;
  font-size: 16px;
}

.secondary-text {
  color: #666;
  font-size: 14px;
}

.danger-button {
  padding: 10px 16px;
  border-radius: 6px;
  background-color: #e74c3c;
  color: white;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.danger-button:hover {
  background-color: #c0392b;
}

.button-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

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

.danger-button.loading .button-text {
  display: none;
}

.danger-button.loading .button-loader {
  display: block;
}

.confirm-delete {
  background: #dc3545;
  color: #fff;
  border: none;
}

.confirm-delete:hover {
  background: #c82333;
  transform: translateY(-1px);
}

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

@media (max-width: 480px) {
  .delete-modal-content {
    width: 95%;
  }

  .delete-modal-header h3 {
    font-size: 16px;
  }

  .delete-modal-body {
    font-size: 14px;
    padding: 16px;
  }

  .cancel-delete,
  .confirm-delete {
    font-size: 13px;
    padding: 6px 12px;
  }
}
