* {
    box-sizing: border-box;
}

.table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.dpi-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.dpi-header {
  display: flex;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
  color: #495057;
}
@media (max-width: 768px) {
  .dpi-header {
    display: none;
  }
}

.dpi-header-mobile {
  display: none;
}
.dpi-header-cell-mobile {
  display: none;
  font-weight: 600;
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  background-color: var(--blockquote-color);
  color: var(--code-color);
  justify-content: center;
  align-items: center;
}
@media (max-width: 768px) {
  .dpi-header-mobile {
    display: flex;
    flex-direction: column;
  }
  .dpi-header-cell-mobile {
    display: flex;
    min-height: 0;
  }
  .dpi-header-cell-mobile:first-child {
    flex: 0.2;
  }

  .dpi-header-cell-mobile:nth-child(2) {
    flex: 0.6;
  }

  .dpi-header-cell-mobile:nth-child(3) {
    flex: 0.2;
  }

  .dpi-header-cell-mobile:last-child {
    flex: 1.5;
  }
}

.dpi-row-content {
  display: flex;
  flex-direction: row;
  width: 100%;
}
@media (max-width: 768px) {
  .dpi-row-content {
    flex-direction: column;
  }
}

.dpi-header-cell {
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid #dee2e6;
  background-color: var(--blockquote-color);
  color: var(--code-color);
}

.dpi-header-cell:first-child {
  flex: 0.7;
}

.dpi-header-cell:nth-child(2) {
  flex: 1;
}

.dpi-header-cell:nth-child(3) {
  flex: 0.7;
}

.dpi-header-cell:last-child {
  flex: 1.6;
  border-right: none;
}

.dpi-row {
  display: flex;
  border-bottom: 1px solid #dee2e6;
}

.dpi-row:nth-child(even) {
  background-color: #f8f9fa;
}

.dpi-row:hover {
  background-color: #e9ecef;
}

.dpi-row:last-child {
  border-bottom: none;
}

.dpi-cell {
  padding: 16px 12px;
  border-right: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dpi-cell:first-child {
  flex: 0.7;
}

.dpi-cell:nth-child(2) {
  flex: 1;
}

.dpi-cell:nth-child(3) {
  flex: 0.7;
}

.dpi-cell:last-child {
  flex: 1.6;
  border-right: none;
}

.vpn-blocked-icon {
  vertical-align: text-bottom;
}

.country-name {
  font-weight: 600;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 768px) {
  .country-name {
    justify-content: center;
  }
}

.country-iso {
  color: #6c757d;
  font-size: 14px;
}

.status-cell {
  align-items: center;
  text-align: center;
}

.status-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  width: fit-content;
  margin-bottom: 4px;
}

.status-enabled {
  background-color: #f8d7da;
  color: #721c24;
}

.status-disabled {
  color: #155724;
  background-color: #d4edda;
}

.legality-high {
  background-color: #f8d7da;
  color: #721c24;
}

.legality-medium {
  background-color: #fff3cd;
  color: #856404;
}

.legality-low {
  background-color: #d4edda;
  color: #155724;
}

.details-text {
  font-size: 13px;
  color: #6c757d;
  margin-top: 4px;
  line-height: 1.4;
}

.popover-container {
  position: relative;
  display: inline-block;
}

.popover-trigger {
  cursor: pointer;
  color: #007bff;
  text-decoration: underline;
  font-size: 12px;
}

.question-mark-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  vertical-align: sub;
}

.question-mark-icon:hover {
}

.popover-content {
  width: auto;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 250px;
  white-space: normal;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: #fff;
}
.popover-content.wide {
  width: 250px;
}

.popover-content::after {
  display: none;
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

.popover-container:hover .popover-content {
  opacity: 1;
  visibility: visible;
}

.dpi-icon {
  background: url('/assets/icons/eye.png') no-repeat center center;
  background-size: contain;
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.vpn-blocked-icon {
  background: url('/assets/icons/vpn.png') no-repeat center center;
  background-size: contain;
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.active-probing-icon {
  background: url('/assets/icons/radio.svg') no-repeat center center;
  background-size: contain;
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.service-icon-container {
  color: var(--code-color);
}

.service-icon {
  display: inline-block;
  min-width: 32px;
  width: 32px;
  height: 32px;
  margin: 2px;
  text-align: center;
  font-size: 10px;
  line-height: 20px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .service-icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
  }
}

.service-icon.accessible {
}

.service-icon.restricted {
}

.service-icon.blocked {
    opacity: 0.3;
    filter: grayscale(1) brightness(0);
}

.dpi-details-text {
  color: var(--error-color);
}

.legality-details {
  font-size: 11px;
  color: #6c757d;
  margin-top: 4px;
  line-height: 1.3;
}
.warning-icon {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 0;
  right: 0;
  color: #000;
}
.category-container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 4px;
}
.service-icon-container {
  margin-right: 8px;
}
.service-item {
  margin-right: 0;
  position: relative;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
@media (max-width: 768px) {
  .top-bar {
    align-items: center;
    flex-direction: column;  
  }
  
  .logo-text {
    font-size: 1.5em !important;
    gap: 8px !important;
  }
  .dpi-header {
    flex-direction: column;
  }
  
  .dpi-row {
    min-height: auto;
  }
  
  .dpi-cell {
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }

  .dpi-cell:first-child {
    flex: 0.2;
  }

  .dpi-cell:nth-child(2) {
    flex: 0.6;
  }

  .dpi-cell:nth-child(3) {
    flex: 0.2;
  }

  .dpi-cell:last-child {
    flex: 1.5;
  }

  .services-cell {
    flex: none;
  }
  
  .category-container {
    align-items: flex-start;
  }
}
.search-form {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}
.legend {
    margin-top: 24px; 
    padding: 16px 12px; 
    background-color: var(--blockquote-color); 
    border-radius: 8px;
}
.legend h3 {
    margin: 0;
}

.icon-link {
    display: flex;
    align-items: center;
    padding-bottom: 3px;
    width: fit-content;
}
.icon-link svg {
    vertical-align: bottom;
}
.icon-link span {
    vertical-align: bottom;
    margin-left: 4px;
}
.logo-text {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-text:hover {
  border: 0;
}
.logo-text img {
  width: 32px;
}
.logo-text-black {
  color: #000;
}
.logo-text-orange {
  color: #f7931e;
}

details {
  text-align: left;
}

@media (max-width: 768px) {
  .footer-links {
    flex: 1;
  }
  .footer-notes-container {
    flex: 1;
  }
}