body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  margin: 0;
  padding: 0;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  margin-bottom: 1rem;
}

.logo-extension {
  font-weight: normal;
  font-size: 1rem;
  color: black;
  text-decoration: none;
}

h1 {
  font-weight: bold;
  font-size: 1.5rem;
}

h2 {
  font-weight: bold;
  font-size: 1.5rem;
}

a {
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.stats-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 1em;
  background-color: #eeeeee;
  border-radius: 8px;
  margin-top: 1em;
}

.stats-left,
.stats-right {
  width: 50%;
}

.stats-left p,
.stats-right p {
  margin: 0.5em 0;
}

.search-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-form input {
  padding: 8px;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-form button {
  padding: 8px 15px;
  background-color: #0066cc;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.search-form button:hover {
  background-color: #004999;
}

#tldForm {
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  word-wrap: break-word;
  table-layout: auto;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* 
* Specifically for the columns that often overflow:
* Ensures text wraps within available space.
*/
.title-col,
.meta-col {
  max-width: 200px; /* Adjust as desired (e.g., 150px, 250px) */
  white-space: normal; /* Enable wrapping */
  overflow-wrap: break-word;
  word-break: break-word;
}

th,
td {
  border: 1px solid #ddd;
  padding: 10px;
  vertical-align: top;
  white-space: normal; /* allow wrapping */
  word-wrap: break-word; /* older name */
  overflow-wrap: break-word; /* modern name */
}

th {
  background-color: #eee;
}

.link-url-col {
  white-space: normal;
  /* These three are usually enough, but add 'word-break: break-all;' 
     or 'overflow-wrap: anywhere;' if needed. */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all; /* Sometimes needed for older browsers */
  /* or */
  /* overflow-wrap: anywhere;  For modern browsers to break absolutely anywhere */
  font-size: 14px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #0066cc;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive (mobile) */
@media screen and (max-width: 830px) {
  /* Force rows to stack for narrower devices */
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  tr {
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
  }
  /*
  th {
    display: none;
  }
  */

  td {
    display: block;
    text-align: right;
    position: relative;
  }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    text-align: left;
    font-weight: bold;
  }

  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }

  .filters label {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* Additional mobile improvements */
  .container {
    padding: 10px;
  }

  .search-form input,
  .search-form button {
    width: 100%;
    box-sizing: border-box;
  }

  .search-form button {
    padding: 12px;
  }
}

/* NEW: Define the hidden class */
.hidden {
  display: none;
}

.view_all {
  margin: 10px;
  font-weight: bold;
}

#show-more {
  cursor: pointer;
  color: blue;
  text-decoration: underline;
  margin-top: 10px;
}

.country-selector {
  margin-bottom: 1rem;
}
.page-selector {
  margin-bottom: 1rem;
}

.pre-wrap {
  white-space: pre-wrap;
}

.search-form {
  margin-bottom: 1rem;
}

.mt-2rem {
  margin-top: 2rem;
}

/* NEW: Styles for IP Tool input */
.ip-segment-input {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ip-segment-input input {
  padding: 8px;
  max-width: 60px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.results-count {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.snapshot-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.snapshot-button {
  padding: 0.5rem 0.75rem;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  text-decoration: none;
  border-radius: 4px;
  color: #333;
}

.snapshot-button:hover {
  background-color: #e0e0e0;
}
