body {
  margin: 0;
  font-family: 'Hack', monospace;
  background-color: #121212;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

header {
  text-align: center;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

nav a {
  margin: 0 1rem;
  color: #90caf9;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  margin-top: 1rem;
}

td {
  padding: 10px 12px;
  border: 1px solid #444;
}

td:first-child {
  font-weight: bold;
  background-color: #1e1e1e;
  width: 40%;
}

.copy-icon {
  margin-left: 8px;
  cursor: pointer;
  color: #90caf9;
  user-select: none;
  font-size: 1.1rem;
  vertical-align: middle;
}

.copied-text {
  margin-left: 6px;
  color: #4caf50;
  font-size: 0.9rem;
  font-weight: bold;
  display: none;
  user-select: none;
  vertical-align: middle;
}

.ip-address {
  font-size: 1.3rem;
  margin: 0.5rem 0;
  text-align: center;
  line-height: 1.2;
  user-select: none;
}

.ip-address .label {
  font-weight: normal;
  color: #e0e0e0;
  display: block;
  margin-bottom: 0.3rem;
}

.ip-address .ip {
  font-size: 2.5rem;
  color: #4caf50;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#map-label {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  user-select: none;
}

#map {
  width: 100%;
  max-width: 600px;
  height: 300px;
  margin-top: 0.5rem;
  border: 1px solid #444;
  border-radius: 5px;
}

.button-group {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
}

button {
  cursor: pointer;
  border: none;
  font-family: 'Hack', monospace;
  font-weight: bold;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-copy {
  background-color: #2196f3;
  color: white;
}

.btn-copy:hover {
  background-color: #1976d2;
}

.btn-export {
  background-color: #4caf50;
  color: white;
}

.btn-export:hover {
  background-color: #388e3c;
}

@media (max-width: 600px) {
  td:first-child {
    width: 45%;
  }

  .button-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  button {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive table wrapper for horizontal scroll on small screens */
#ipInfoTableContainer {
  width: 100%;
  max-width: 600px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* Make sure table doesn't exceed container width */
#ipInfoTable {
  width: 100%;
  min-width: 320px; /* minimum width so it doesn't shrink too much */
  border-collapse: collapse;
}
/* Hide mobile menu and sidebar by default */
.mobile-menu {
  display: none;
}

#sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  background-color: #1e1e1e;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
}

#sidebar a {
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1.1rem;
  color: #90caf9;
  display: block;
  transition: 0.3s;
}

#sidebar .closebtn {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

#menuToggle {
  font-size: 1.8rem;
  cursor: pointer;
  color: #90caf9;
  position: absolute;
  top: 15px;
  right: 20px;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}
h1 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover {
  text-decoration: none;
}
.ip-info-text {
  max-width: auto;
  margin: 2rem auto 0;
  padding: 1rem;
  background-color: #1e1e1e;
  border-radius: 5px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.ip-info-text h2, .ip-info-text h3 {
  color: #90caf9;
  margin-top: 1rem;
}

.ip-info-text ul {
  padding-left: 1.5rem;
}

.ip-info-text li {
  margin-bottom: 0.5rem;
}
.faq-section {
  max-width: auto;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #1e1e1e;
  border-radius: 5px;
}

.faq-section h2 {
  color: #90caf9;
  margin-bottom: 1rem;
}

.faq-item {
  margin-bottom: 1.2rem;
}

.faq-item h4 {
  color: #4caf50;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.faq-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e0e0e0;
}


.faq-section {
  max-width: 100%;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #1e1e1e;
  border-radius: 5px;
}

.faq-section h2 {
  color: #90caf9;
  margin-bottom: 1rem;
  text-align: center;
}

#faqSearch {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  font-family: 'Hack', monospace;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #444;
  background-color: #121212;
  color: #fff;
}

.accordion {
  background-color: #2a2a2a;
  color: #e0e0e0;
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  border-radius: 5px;
  margin-bottom: 5px;
}

.accordion:hover,
.accordion.active {
  background-color: #333;
}

.panel {
  padding: 0 1rem;
  background-color: #1c1c1c;
  overflow: hidden;
  border-left: 3px solid #4caf50;
  margin-bottom: 1rem;
  border-radius: 0 0 5px 5px;

  /* Added for accordion behavior */
  max-height: 0;
  transition: max-height 0.3s ease-out;
  display: block; /* Allow height animation */
}

.blog-list-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

.blog-list {
  list-style-type: none;
  padding-left: 0;
}

.blog-list li {
  background: #1c1c1c;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 5px;
}

.blog-list a {
  color: #4caf50;
  text-decoration: none;
  font-weight: bold;
}

.blog-list a:hover {
  text-decoration: underline;
}

.ip-lookup-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.input-group input[type="text"] {
  padding: 0.5rem;
  font-size: 1rem;
  width: 250px;
  max-width: 80%;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.input-group button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #1e90ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.input-group button:hover {
  background-color: #0f78d1;
}

#ipTypeStatus {
  font-size: 0.9rem;
  color: #eee;
}

.ip-class-table th,
.ip-class-table td {
  text-align: left;
  font-size: 0.95rem;
}
.ip-class-table th {
  background-color: #333;
  color: #fff;
}

/* Responsive Table */
.ip-class-table,
.ip-table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

/* Table Head and Body Cell Styling */
.ip-class-table th,
.ip-class-table td,
.ip-table th,
.ip-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 0.95rem;
}

/* Optional: Make the table horizontally scrollable on small screens */
@media screen and (max-width: 768px) {
  .ip-class-table,
  .ip-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group input,
  .input-group button {
    width: 100%;
  }
}

