/* Container chứa danh sách các site */
.sites-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: 12px;
  justify-content: flex-start;
}

/* Card hiển thị thông tin site */
.site-card {
  width: 255px;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
  color: #222;
  position: relative;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 370px;
  padding: 0; /* Xóa padding mặc định nếu có */
}

/* Đảm bảo các phần tử con không tạo khoảng trắng thừa */
.site-card > * {
  margin: 0; /* Xóa margin mặc định cho các phần tử con */
}

/* Tinh chỉnh các phần tử cụ thể trong site-card */
.site-card h3,
.site-card a {
  flex-grow: 0;
  margin: 5px 0;
}

.site-card .add-domain {
  flex-grow: 0;
}

.site-card .countdown {
  flex-grow: 0;
  margin: 5px;
}

.site-card .buttons {
  flex-grow: 0;
  padding: 0px 10px;
  display: flex;
  justify-content: space-between;
  font-size: 15px !important;
}

/* Container cho ảnh của site */
.site-image-container {
  flex-grow: 0; /* Không cho phép container ảnh mở rộng quá mức */
  margin: 0; /* Xóa margin để không tạo khoảng trắng */
  padding: 0; /* Xóa padding */
  line-height: 0; /* Xóa khoảng cách dòng để ảnh sát với phần trên */
}

/* Ảnh của site */
.screen-image-site {
  height: 187.5px !important;
  width: 100%;
  object-fit: cover;
  display: block; /* Đảm bảo ảnh là block element */
  margin: 0; /* Xóa margin */
  padding: 0; /* Xóa padding */
}

/* Container cho các badge trạng thái */
.status-container {
  display: flex;
  gap: 10px;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1; /* Đảm bảo badge nằm trên ảnh */
}

/* Style cho các badge trạng thái */
.status-badge,
.status-badge-domain {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Các trạng thái khác nhau của badge */
.status-active {
  background: #c6f6d5;
  color: rgb(61, 144, 102);
}

.status-checking-dns {
  background: #fff3cd;
  color: #856404;
}

.checking-ssl-cert {
  background: #fff3cd;
  color: #856404;
}

.status-failed {
  background: #fdecea;
  color: #b71c1c;
}

.status-pending {
  background: #d1c4e9;
  color: #673ab7;
}

.status-primary {
  background: #ffeb3b;
  color: #f57c00;
}

/*  change customer */

/* CSS: Viền đỏ khi lỗi */
#new-email.input-error {
  border: 2px solid #e74c3c !important;
  outline: none;
}

#new-email {
  margin-bottom: 0px !important;
}

.change-customer-button {
  color: #f57c00 !important;
}

.change-customer-button:hover {
  color: rgb(61, 144, 102) !important;
}

.error-message {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 5px;
  text-align: left;
}

/* Overlay nền đen mờ */
.change-customer-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Nội dung popup */
.change-customer-popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.change-customer-popup-content h3 {
  color: #007bff;
  text-align: center;
  margin-top: 0;
  font-size: 22px;
}

/* Form layout */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* Nút action */
.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-change-customer,
.btn-cancel {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-bottom: 0px !important;
}

.btn-change-customer {
  background-color: #218838;
  color: white;
}

.btn-change-customer:hover {
  background-color: #f06c00 !important;
}

.btn-cancel {
  background-color: #ccc !important;
  color: #333;
}

.btn-cancel:hover {
  background-color: #aaa !important;
}

/* end change customer */

/* Tiêu đề của site */
.site-card h3 {
  margin: 5px 0;
  color: #222;
  font-size: 18px !important;
  font-weight: bold;
}

/* Đoạn văn bản trong site-card */
.site-card p {
  color: #444;
  font-size: 14px;
  margin-bottom: 5px;
}

/* Nút "Thêm domain chính" */
.add-domain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #007bff;
  cursor: pointer;
  font-size: 14px;
  margin-top: 5px;
}

.add-domain:hover {
  color: #0056b3;
}

/* Container cho các nút "Trang Admin" và "Quản lý site" */
.buttons {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 15px !important;
}

.buttons a {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  color: white !important;
  text-align: center;
  transition: background 0.3s;
}

/* tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 140px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;

  /* Đặt tooltip phía dưới */
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;

  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* end tooltip */

/*  clone site button*/

.wrap-title-button-dup {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
}

.clone-site-button {
  display: inline-block;
  color: #007bff !important;
  padding: 0 !important;
  background-color: #fff !important;
  font-size: 12px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
  width: auto; /* không chiếm full width */
  white-space: nowrap;
}

.clone-site-button:hover {
  color: #28a745 !important; /* xanh lá khi hover */
  background-color: #fff !important;
}

.is-loading {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.6;
  background-color: #999 !important;
  color: #fff !important;
  box-shadow: none !important;
  transition: none !important;
}
/* end clone site button */

/* popup success and error */
/* .success-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  animation: fadeIn 0.3s ease forwards;
}

.success-popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;

  transform: scale(0.8);
  opacity: 0;
  animation: popupShow 0.3s ease forwards;
}

.success-popup-content h3 {
  color: #28a745;
  font-size: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupShow {
  to {
    transform: scale(1);
    opacity: 1;
  }
} */

/* Overlay */
/* Dùng chung overlay + box với popup thành công */
/* Overlay */
.success-popup-overlay,
.error-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease forwards;
}

/* Popup box */
.success-popup-content,
.error-popup-content {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  font-family: Arial, sans-serif;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: popupBounce 0.4s ease-out forwards;
}

/* SVG Check Animation */
.success-popup-content svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.check-circle {
  fill: none;
  stroke: #28a745;
  stroke-width: 4;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  animation: strokeDraw 0.6s ease forwards;
}

.check-mark {
  fill: none;
  stroke: #28a745;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeDraw 0.4s ease forwards 0.6s;
}

/* Title */
.success-popup-content h3 {
  color: #28a745;
  font-size: 20px;
  margin: 0 0 15px 0;
}

/* OK Button */
.success-popup-ok {
  background: linear-gradient(90deg, #28a745, #34d058);
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.success-popup-ok:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupBounce {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes strokeDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* SVG lỗi */
.error-popup-content svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.error-circle {
  fill: none;
  stroke: #dc3545; /* đỏ */
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeDraw 0.6s ease forwards;
}

.error-mark {
  fill: none;
  stroke: #dc3545;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.error-mark-left {
  animation: strokeDraw 0.35s ease forwards 0.6s;
}
.error-mark-right {
  animation: strokeDraw 0.35s ease forwards 0.9s;
}

/* Tiêu đề đỏ */
.error-popup-content h3 {
  color: #dc3545;
  font-size: 20px !important;
  margin: 0 0 15px 0;
}

/* Nút OK đỏ */
.error-popup-ok {
  background: linear-gradient(90deg, #dc3545, #ff5b6a);
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.error-popup-ok:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Dùng lại keyframes đã có: fadeIn, popupBounce, strokeDraw */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes popupBounce {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes strokeDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* end  */

/* dissabled when load clone */
.btn-clone[disabled],
.btn-cancel[disabled] {
  pointer-events: none; /* Chặn hover & click */
  opacity: 0.6; /* Làm mờ nút */
  cursor: not-allowed; /* Con trỏ chéo */
  background-color: #999 !important; /* Tuỳ chỉnh lại nền nếu bị theme override */
  color: #fff !important;
  box-shadow: none !important; /* Gỡ hiệu ứng hover nếu có */
  transition: none !important; /* Gỡ hiệu ứng mượt nếu cần */
}

a.change-customer-button.disabled-change {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-change-customer[disabled],
.btn-cancel-change-customer[disabled] {
  pointer-events: none; /* Chặn hover & click */
  opacity: 0.6; /* Làm mờ nút */
  cursor: not-allowed; /* Con trỏ chéo */
  background-color: #999 !important; /* Tuỳ chỉnh lại nền nếu bị theme override */
  color: #fff !important;
  box-shadow: none !important; /* Gỡ hiệu ứng hover nếu có */
  transition: none !important; /* Gỡ hiệu ứng mượt nếu cần */
}

.btn-cancel-change-customer {
  background-color: #dc3545 !important;
  margin-bottom: 0px !important;
  color: #fff !important;
  border-radius: 4px;
}

.btn-cancel-change-customer:hover {
  background-color: #c82333 !important ;
}

/* popup clone site */

/* Overlay nền đen mờ */
.clone-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Nội dung popup */
.clone-popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.clone-popup-content h3 {
  color: #007bff;
  text-align: center;
}

/* Header */
.clone-popup-content h3 {
  margin-top: 0;
  color: #007bff;
  font-size: 22px;
}

/* Form layout */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

#new-domain {
  margin-bottom: 0px !important;
}

/* Nút action */
.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-clone,
.btn-cancel {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-bottom: 0px !important;
}

.btn-clone {
  background-color: #218838;
  color: white;
}

.btn-clone:hover {
  background-color: #f06c00 !important;
}

.btn-cancel {
  background-color: #dc3545 !important;
  color: white;
}

.btn-cancel:hover {
  background-color: #c82333 !important ;
}

/* css pending */
.site-status.pending {
  color: #fff;
  font-weight: bold;
  animation: blink 1.2s infinite;
  display: block;
  background-color: #0056b3;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.site-status.loading-bar {
  height: 4px;
  background: linear-gradient(90deg, #ff9800, #ffc107);
  animation: loadProgress 2s linear infinite;
}
@keyframes loadProgress {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* sub domain */

.domain-input-wrapper {
  display: flex;
  position: relative;
  align-items: center;
  background: #eafff3;

  border: 1px solid #d5f2e5;
  border-radius: 6px;
}

.domain-input-wrapper input {
  border: none;
  background: transparent;
  outline: none;
  flex-grow: 1;
  font-size: 16px;
}

.domain-suffix {
  margin-left: 6px;
  color: #555;
  font-size: 16px;
  white-space: nowrap;
}

/* Hiệu ứng */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* end popup clone site  */

/* Nút "Trang Admin" */
.manage-button {
  background: #007bff !important;
  margin-right: 8px !important;
}

.manage-button:hover {
  background: #0056b3 !important;
}

/* Nút "Quản lý site" */
.view-button {
  background: #28a745;
}

.view-button:hover {
  background: #1e7e34;
}

/* Card "Thêm site mới" */
.add-site-card {
  width: 255px;
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: background 0.3s;
}

.add-site-card span {
  color: #fff;
}

.add-site-card:hover span {
  color: orange;
}

/* Menu 3 chấm */
.menu-dots {
  position: absolute;
  right: 0px;
  cursor: pointer;
  color: #f5f5f5;
  font-size: 20px;
  z-index: 10;
  padding: 10px 10px 10px 27px;
  background: #444444b5;
  border-radius: 0px 12px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  right: 10px;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  z-index: 20;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

/* manage delete site */

/* Ẩn các nút mặc định */
.site-actions {
  justify-content: center;
  gap: 10px;
  display: none;
}

/* Khi hover vào ô domain, hiển thị nút */
.site-domain-cell:hover .site-actions {
  display: flex;
}

/* Style cho nút */
.btn-restore-site,
.btn-delete-site {
  padding: 3px 8px;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-restore-site {
  color: #2ecc71;
}

.btn-restore-site:hover {
  color: #27ae60;
}

.btn-delete-site {
  color: #e74c3c;
}

.btn-delete-site:hover {
  color: #c0392b;
}

/* Style khi có membership */
.membership-label {
  display: inline-block;
  padding: 6px 10px;
  background-color: #e6f7ff;
  color: #0073aa;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #b3e5fc;
  font-size: 13px;
}

/* Style khi không có membership */
.membership-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #f9f9f9;
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 12px;
  min-width: 160px;
  max-width: 220px;
  margin: 0 auto;
  color: #7a7a7a;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.membership-empty .membership-icon {
  font-size: 18px;
  margin-bottom: 5px;
  opacity: 0.6;
}

.membership-empty .membership-text {
  font-size: 13px;
  color: #777;
}

.wrap-ring {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.deleted-sites-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.deleted-sites-content {
  position: absolute;
  background-color: #fff;
  /* margin: 0 auto; */
  top: 50%;
  padding: 32px;
  border-radius: 12px;
  width: 85%;
  /* max-width: 1000px; */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  left: 50%;
  transform: translate(-50%, -50%);
}

.deleted-sites-content h2 {
  margin-top: 0;
  font-size: 22px;
  text-align: center;
}

.close-modal {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.deleted-sites-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-bulk {
  background-color: #0073aa;
  border: none;
  padding: 6px 12px;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
}

.btn-bulk:hover {
  background-color: #005177;
}

.pagination {
  display: flex;
  gap: 5px;
}

.page-link {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  text-decoration: none;
  border-radius: 3px;
  margin-right: 6px;
}

.page-link.active {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

.deleted-sites-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.deleted-sites-table th,
.deleted-sites-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.deleted-sites-table td {
  vertical-align: middle; /* Căn giữa theo chiều dọc */
}

.deleted-sites-table th {
  background-color: #f8f8f8;
  font-weight: bold;
}

.site-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
}

.deleted-sites-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.deleted-sites-pagination .page-link {
  display: inline-block;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #0073aa;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.deleted-sites-pagination .page-link:hover:not(.disabled):not(.active) {
  background: #f3f4f6;
  border-color: #0073aa;
}

.deleted-sites-pagination .page-link.active {
  background: #0073aa;
  color: white;
  font-weight: bold;
  border-color: #0073aa;
}

.deleted-sites-pagination .page-link.disabled {
  background: #f1f1f1;
  color: #aaa;
  cursor: not-allowed;
}

.deleted-sites-pagination .dots {
  padding: 6px 10px;
  color: #666;
}

/* spiner */
/* Overlay Loader bao phủ toàn bộ modal */
.deleted-sites-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  display: none; /* Ẩn mặc định */
}

/* Spinner Animation */
.lds-ring {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 48px;
  height: 48px;
  margin: 8px;
  border: 6px solid #3498db;
  border-radius: 50%;
  animation: lds-ring 1.2s linear infinite;
  border-color: #3498db transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* end manage delete site */

/* Add Domain Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
  margin-bottom: 20px;
  text-align: center;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.modal-body {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  color: #555;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
}

/* Toggle switch styles */
.toggle-switch {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
  background-color: #000000e0;
  justify-content: space-between;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-left: 5px;
}

.toggle-switch-content,
.switch-label {
  color: #ffda18 !important;
}

#primaryDomainHelp {
  font-size: 12px;
  margin: 0px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.primary-domain-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.primary-domain-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 19px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .primary-domain-slider {
  background-color: #ffda18;
}

input:checked + .primary-domain-slider:before {
  transform: translateX(26px);
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: stretch;
}

.modal-button {
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  transition: background 0.3s !important;
  flex: 1 !important;
  background-color: initial !important;
  height: 45px !important;
  line-height: 25px !important;
}

.modal-button i {
  margin-right: 8px;
}

.add-domain-button,
.upgrade-button {
  background: #00a15d !important;
  color: white !important;
}

.add-domain-button:hover,
.upgrade-button:hover {
  background: #0056b3 !important;
}

.cancel-button {
  background: #dc3545 !important;
  color: white !important;
}

.cancel-button:hover {
  background: #c82333 !important;
}

.close-modal {
  position: absolute;
  top: -5px;
  right: 15px;
  font-size: 40px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1001;
}

.close-modal:hover {
  color: #333;
}

/* Delete confirmation modal */
.delete-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.delete-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.delete-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.delete-modal-button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  min-width: 100px;
}

.confirm-delete {
  background: #dc3545 !important;
  color: white;
}

.cancel-delete {
  background: #6c757d !important;
}

.modal-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.modal-button.loading i {
  animation: spin 1s linear infinite;
}

select#membership {
  background-color: #ddfff0;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #ddfff0;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  margin-bottom: 0px !important;
  height: unset !important;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

/* Countdown container */
.countdown {
  text-align: center;
  color: #e74c3c;
  border: 1px dashed red;
  margin: 0px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Countdown timer text */
.countdown-timer {
  font-size: 13px;
  color: #ff0000;
  font-weight: bold;
}

.countdown-timer span {
  display: inline-block;
}

/* Tooltip container */
.countdown-hourglass {
  font-size: 16px;
  color: #e74c3c;
  animation: flipHourglass 2s infinite;
  position: relative;
  cursor: pointer;
}

/* Flip animation for the hourglass */
@keyframes flipHourglass {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .sites-container {
    place-content: center;
  }
}

/* order page */
.content-area .wcm-table-flatsome h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #2c3e50;
}

.content-area .wcm-table-flatsome h3 {
  margin-top: 30px;
  font-size: 20px;
  font-weight: bold;
  color: #34495e;
}

.content-area .wcm-table-flatsome ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-area .wcm-table-flatsome ul li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-area .wcm-table-flatsome {
  /* line-height: 1.6; */
  color: #333;
  border-radius: 8px;
  background-color: #fff;
  padding: 20px;
  margin: 0 auto;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.content-area .wcm-table-flatsome .button-back {
  color: #00a15d;
}

.content-area .wcm-table-flatsome .button-back:hover {
  color: #ff8c4b;
}
