/* Container for table */
.pricing-table-container {
  overflow: auto;
  /*max-height: 65vh;*/
  margin: 40px 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: white;
}

/* Styling Main table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.6;
}

/* Header table */
.pricing-table thead {
  background: #0A5DEB;
  color: #fff;
}

.pricing-table thead th {
  padding: 16px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid #e2e8f0;
  /*position: sticky;
  top: 0;*/
  background: #0A5DEB;
  z-index: 10;
}

/* Body table */
.pricing-table tbody tr {
  background: white;
  transition: background-color 0.2s ease;
}

.pricing-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.pricing-table tbody tr:hover {
  background: #f1f5f9;
}

.pricing-table tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  text-align: center;
  /*color: #334155;*/
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.specs {
  font-weight: 500;
  color: #0f172a;
  font-size: 14px;
}

/* Badge styling*/
.region-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

.region-badge {
  background-color: #eef3fe;
  color: #1c59b8;
  border-color: #d2e3fc;
}

.type-badge,
.type-aws,
.type-gcp,
.type-azure {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  /*text-transform: uppercase;*/
  letter-spacing: 0.5px;
}

.type-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.type-aws {
  background: #fff4ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.type-gcp {
  background: #eef3fe;
  color: #1c59b8;
  border: 1px solid #d2e3fc;
}

.type-azure {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bde0fe;
}

/* Pricing columns */
.price-aws {
  color: #ff6b35;
  font-weight: 600;
  font-size: 14px;
  /*font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;*/
}

.price-gcp {
  color: #4285f4;
  font-weight: 600;
  font-size: 14px;
  /*font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;*/
}

.price-azure {
  color: #0078d4;
  font-weight: 600;
  font-size: 14px;
  /*font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;*/
}

.price-nexqloud {
  color: #10b981;
  font-weight: 700;
  /*font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);*/
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  /*border: 1px solid #10b981;*/
}

/* Savings percentage styling */
.savings-percentage {
  font-weight: 700;
  font-size: 14px;
  color: #059669;
  /*background: linear-gradient(135deg, #ecfdf5, #d1fae5);*/
  background: #F1F9F5;
  padding: 8px 12px;
  text-align: center;
  /*border: 1px solid #10b981;*/
  position: relative;
}

.pricing-table tbody tr:nth-child(even) .savings-percentage {
  background: #EAF2EF;
}

/*
  .savings-percentage::before {
    content: '💰';
    margin-right: 4px;
  }*/

/* Loading state */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 18px;
  background: linear-gradient(135deg, #fff, #fff);
  border-radius: 12px;
  margin: 20px 0;
}

/*
.loading::before {
  content: '⏳';
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}
*/

.loading::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 10px auto;

  mask-image: url('https://cdn.prod.website-files.com/68509f75fb316a0aaeb86de3/68e8aba76698f2c3fcdd6026_90-ring.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  background-color: #1d7cff;
}

/* Error state */
.error {
  text-align: center;
  padding: 40px 20px;
  color: #dc2626;
  font-size: 16px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-radius: 12px;
  margin: 20px 0;
  border: 1px solid #fca5a5;
}

.error::before {
  content: '⚠️';
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}

/* Sortable headers */
.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.sortable:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sortable::after {
  content: '⇅';
  position: absolute;
  right: 8px;
  opacity: 0.5;
  font-size: 10px;
}

/* Hover */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/*
.pricing-table tbody tr:hover .savings-percentage {
  animation: pulse 0.6s ease-in-out;
}
*/

/* Responsive design */
@media (max-width: 768px) {
  .pricing-table {
    font-size: 12px;
  }

  .pricing-table thead th,
  .pricing-table tbody td {
    padding: 8px 6px;
  }

  .region-badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  .type-badge {
    font-size: 10px;
    padding: 2px 4px;
  }

  .pricing-table thead {
    height: 3rem !important;
    text-wrap-mode: nowrap;
  }
}

/* Additional styling for form filters if needed */
.filter-container {
  margin: 20px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.filter-container select {
  margin: 5px 10px 5px 0;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  font-size: 14px;
}

.stats-container {
  margin: 10px 0;
  padding: 15px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 8px;
  border: 1px solid #0ea5e9;
  color: #0c4a6e;
  font-weight: 600;
}

.col-head-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/*==== CUSTOM SCROLLBAR====*/
[data-scroll="table"]::-webkit-scrollbar-track {
  border-radius: 1000px;
  background-color: #E8E8E8;
}

[data-scroll="table"]::-webkit-scrollbar {
  width: 4px;
  border-radius: 1000px;
  background-color: #E8E8E8;
}

[data-scroll="table"]::-webkit-scrollbar-thumb {
  border-radius: 1000px;
  background-color: #0A5DEB;
}

[data-scroll="table"]::-webkit-scrollbar-button {
  display: none;
}

.pagination-controls [pag-nav="next"],
.pagination-controls [pag-nav="prev"] {
  display: flex;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.pagination-controls [pag-nav="prev"] {
  border-right: 1px solid #EDEDED;
}

.pagination-controls [pag-nav="next"] {
  border: none;
}

.pagination-controls .page-btn {
  padding: 0.5rem;
  border-right: 1px solid #EDEDED;
  cursor: pointer;
  background: white;
  min-width: 2.5rem;
  transition: background-color .2s;
}

.pagination-controls .page-btn:hover,
.pagination-controls .page-btn.active {
  background: #FAFAFA;
}

.pagination-controls .page-btn:disabled,
.pagination-controls .page-btn-prev:disabled,
.pagination-controls .page-btn-next:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-controls .page-btn:disabled:hover,
.pagination-controls .page-btn-prev:disabled:hover,
.pagination-controls .page-btn-next:disabled:hover {
  background: white;
}

.pagination-controls_wrapper:not(:has(.page-btn)) {
  display: none;
}

.pagination-controls .page-btn svg {
  width: 20px;
  height: 20px;
}

@media screen and (max-width: 767px) {

  .pagination-controls [pag-nav="next"],
  .pagination-controls [pag-nav="prev"] {
    min-height: 2rem;
    padding: 0.25rem 0.5rem;
    gap: 0.25rem;
  }

  .pagination-controls .page-btn {
    padding: 0.25rem;
    min-width: 2rem;
    border: 1px solid #EDEDED;
    border-radius: 0.25rem;
  }

  .pagination-controls .page-btn svg {
    width: 16px;
    height: 16px;
  }
}
