/* General Styles */
.lwip-post-moderation-container {
  font-family: Arial, sans-serif;
  width: 90%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

.lwip-post-moderation-content {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-height: calc(5 * 126px);
  overflow-y: auto;
}

/* Header Section */
.lwip-post-moderation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.lwip-post-moderation-title {
  font-family: "Nunito", sans-serif;
  margin: 0;
  font-weight: 600;
  font-size: clamp(20px, 4.6vw, 24px);
  line-height: 1.3333333333333333;
}

.lwip-search-container {
  position: relative;
}

.lwip-search-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding-left: 40px;
  width: 100%;
  height: 40px;
}

.lwip-table-column-svg-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.lwip-caret-down-svg {
  margin-top: -0.8em;
}

.lwip-search-container-span {
  position: absolute;
  left: 10px;
  top: 55%;
  transform: translateY(-50%);
  color: #000;
}

.lwip-search-input-wrapper input[type="text"] {
  width: 150px;
  height: 25px;
  padding-left: 29px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
}

.lwip-search-input-wrapper input[type="text"]:hover,
.lwip-search-input-wrapper input[type="text"]:active {
  border: 1px solid #27c4cf;
}

.lwip-search-icon-svg {
  width: 14px;
  height: 14px;
}

.lwip-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Table Section */
.lwip-post-moderation-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.lwip-post-date {
  width: 15%;
}

.lwip-post-moderation-preview {
  width: 0%;
}

.lwip-post-moderation-preview-th,
.lwip-post-moderation-date-th {
  cursor: pointer;
}

.lwip-post-moderation-table th,
.lwip-post-moderation-table td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.lwip-post-moderation-table th {
  font-family: "Nunito", sans-serif;
  background-color: #f3f3f3;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
  position: sticky;
  top: 0;
  z-index: 1;
  border-right: 1px solid #ddd;
}

.lwip-post-moderation-table th:last-child,
.lwip-post-moderation-table th:first-child {
  border-right: none;
}

.lwip-post-moderation-table tbody tr:hover {
  background-color: #f5f5f5;
}

.lwip-ant-table-column-sorter {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.lwip-anticon-caret-up,
.lwip-anticon-caret-down {
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.lwip-anticon-caret-up:hover,
.lwip-anticon-caret-down:hover {
  color: #000;
}

.lwip-post-preview img {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
}

.lwip-post-details .lwip-username {
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  color: #000;
  margin: 0;
}

.lwip-post-details .lwip-post-text {
  font-size: 13px;
  color: #000;
}

.lwip-post-moderation-table td.lwip-widget-toggle {
  text-align: center;
}

/* Toggle Switch */
.lwip-widget-toggle {
  width: 15%;
}

.lwip-widget-toggle .lwip-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.lwip-widget-toggle .lwip-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lwip-widget-toggle .lwip-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 22px;
  transition: 0.4s;
}

.lwip-widget-toggle .lwip-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background-color: white;
  bottom: 2px;
  left: 2px;
  transition: 0.4s;
}

.lwip-widget-toggle input:checked + .lwip-slider {
  background-color: #22c1c3;
}

.lwip-widget-toggle input:checked + .lwip-slider:before {
  transform: translateX(22px);
}

/* Footer Section */
.lwip-post-moderation-footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.lwip-pagination {
  display: flex;
  justify-content: center;
}

.lwip-pagination-btn {
  font-size: 14px;
  background-color: #f3f3f3;
  border: none;
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
}

.lwip-pagination-btn.lwip-active {
  color: #22c1c3;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  border-color: #27c4cf;
}

.lwip-pagination .ant-pagination-item-link {
  border: none;
  background: transparent;
  font-size: 1em;
  transition: color 0.3s;
}

.lwip-pagination .ant-pagination-item-link:disabled {
  color: gray;
  cursor: not-allowed;
}

.lwip-pagination .ant-pagination-item-link:not(:disabled):hover {
  color: black;
  cursor: pointer;
}

.lwip-pagination .lwip-active {
  color: #007bff;
}
