/* Modal Overlay */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Hidden class to toggle modal visibility */
.hidden {
  display: none;
}

/* Modal Content Box */
.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 95%;
  max-width: 768px; /* Tailwind's max-w-3xl */
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: #f3f4f6; /* Tailwind's gray-100 */
  border-bottom: 1px solid #ddd;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Close Button */
.close-btn {
  color: #4b5563; /* Tailwind's gray-600 */
  background: none;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: white;
  background-color: #dc2626; /* Tailwind's red-600 */
}

/* Modal Body */
.modal-body {
  padding: 16px 24px;
  overflow-y: auto;
  font-size: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section Titles and Content */
.section-title {
  font-weight: 600;
  color: #374151; /* Tailwind's gray-700 */
}

.section-text {
  background-color: #f3f4f6;
  padding: 8px;
  border-radius: 4px;
  color: #1f2937; /* Tailwind's gray-800 */
  white-space: pre-wrap;
}

.section-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Feedback Label */
.feedback-label {
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  color: white;
  background-color: #10b981; /* default to green; override as needed */
}

/* Created Date */
.created-date {
  color: #4b5563; /* Tailwind's gray-600 */
  font-size: 0.875rem;
}

/* Shared styles for the badge */
.feedback-badge {
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  color: white;
  display: inline-block;
}

/* Specific styles */
.feedback-like {
  background-color: #34d399; /* green-400 */
}

.feedback-dislike {
  background-color: #f87171; /* red-400 */
}

.hidden {
  display: none !important;
}

.table-skeleton {
  width: 100%;
  height: 440.4px;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.skeleton-row {
  height: 40px;
  background: linear-gradient(90deg, #f3f3f3 25%, #e2e2e2 50%, #f3f3f3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-sort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.75em 0;
  animation: shimmer 1.5s infinite;
}

.skeleton-sort-row {
  height: 40px;
  width: 276.47px;
  background: linear-gradient(90deg, #f3f3f3 25%, #e2e2e2 50%, #f3f3f3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
