/* =========================
   IMAGE HOVER ZOOM
========================= */

.bitela-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.bitela-thumb:hover {
  transform: scale(2.2);
  z-index: 10;
  position: relative;
}

/* =========================
   MODAL IMAGE PREVIEW
========================= */

.bitela-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.bitela-modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.bitela-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
}

.bitela-media-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bitela-review-video {
  width: 90px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.bitela-review-author {
  font-weight: 600;
  margin-bottom: 4px;
}

.bitela-review-content {
  color: #646970;
  line-height: 1.5;
}

.bitela-featured-badge {
  display: inline-block;
  margin-top: 8px;
  background: #2271b1;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
}

.bitela-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.bitela-stat-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bitela-stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #2271b1;
}

.bitela-stat-label {
  margin-top: 8px;
  color: #646970;
}

.bitela-review-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bitela-upload-box {
  border: 2px dashed #ddd;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
}

.bitela-image-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.bitela-image-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.bitela-video-preview video {
  width: 220px;
  margin-top: 15px;
}

.bitela-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.bitela-gallery img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.bitela-review-media-notice {
  margin-bottom: 15px;
}

.bitela-review-media-message {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.bitela-review-media-message--error {
  background: #ffe7e5;
  color: #c92d2d;
  border: 1px solid #f5c2c2;
}

.bitela-review-media-message--success {
  background: #e6ffed;
  color: #1e6b3d;
  border: 1px solid #b8e0c7;
}

.bitela-video video {
  width: 350px;
  max-width: 100%;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .bitela-review-upload-grid {
    grid-template-columns: 1fr;
  }
}

/*
|--------------------------------------------------------------------------
| Featured Reviews Admin
|--------------------------------------------------------------------------
*/

.bitela-search {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.bitela-search input[type="search"] {
  width: 420px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
}

.bitela-table {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.bitela-table th {
  font-weight: 600;
  background: #f6f7f7;
}

.bitela-table td {
  vertical-align: middle;
}

.bitela-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bitela-product strong {
  font-size: 14px;
  line-height: 1.4;
}

.bitela-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.bitela-rating {
  color: #ffb900;
  font-size: 16px;
  letter-spacing: 2px;
}

.bitela-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.bitela-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bitela-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c3c4c7;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.bitela-switch .slider:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.bitela-switch input:checked + .slider {
  background: #2271b1;
}

.bitela-switch input:checked + .slider:before {
  transform: translateX(24px);
}

.bitela-delete-review {
  color: #d63638 !important;
}

.bitela-delete-review:hover {
  color: #b32d2e !important;
}

.bitela-review-video {
  width: 90px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.bitela-review-author {
  font-weight: 600;
  margin-bottom: 4px;
}

.bitela-review-content {
  color: #50575e;
  line-height: 1.5;
}

.bitela-featured-badge {
  display: inline-block;
  background: #2271b1;
  color: #fff;
  padding: 4px 8px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
}

.bitela-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.bitela-stat-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 20px;
}

.bitela-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #2271b1;
}

.bitela-stat-label {
  color: #646970;
  margin-top: 5px;
}

@media (max-width: 1024px) {
  .bitela-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bitela-search {
    flex-direction: column;
    align-items: stretch;
  }

  .bitela-search input[type="search"] {
    width: 100%;
  }

  .bitela-stats {
    grid-template-columns: 1fr;
  }

  .bitela-review-video {
    width: 70px;
    height: 50px;
  }
}

/* popup form add new reviews */

/* Modal Content Box */
.bitela-modal-content {
  background: #fff;
  padding: 25px;
  width: 400px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.bitela-modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: #555;
}

.bitela-input,
.file-input {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.media-field-container {
  display: none;
  margin-bottom: 15px;
  padding: 10px;
  background: #f9f9f9;
  border: 1px dashed #bbb;
  border-radius: 4px;
}

.bitela-modal-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  color: #333;
}

.bitela-modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.btn-submit {
  background: #2271b1;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-cancel {
  background: #eee;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

/* Edit button */

.bitela-btn-edit {
  background: #2271b1;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
}

.bitela-btn-edit:hover {
  background: #135e96;
  color: #fff;
}

.bitela-table td:last-child {
  white-space: nowrap;
}

/* pagination */
.tablenav {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #c3c4c7;
}

.tablenav-pages .page-numbers {
  padding: 5px 10px;
  border: 1px solid #c3c4c7;
  text-decoration: none;
  color: #2271b1;
  background: #fff;
}

.tablenav-pages .page-numbers.current {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

/* Ensure the container is visible and styled */
.tablenav.bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: #f0f0f1;
  padding: 10px;
  border-top: 1px solid #c3c4c7;
  margin-top: 0;
}

/* Ensure the links are styled like WordPress buttons */
.tablenav-pages .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  margin-left: 5px;
  border: 1px solid #8c8f94;
  background: #fff;
  color: #2271b1;
  text-decoration: none;
  border-radius: 3px;
}

.tablenav-pages .page-numbers.current {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

#bitela-add-review-btn {
  float: right;
}
