/* Paywall soft-hide state */
#paywall.hidden-paywall {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.4s ease;
}





/*happy hours*/
#happyHourBanner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000; /* Higher than the paywall */
  padding: 12px 24px;
  text-align: center;
  font-size: 1.1rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #ffffff;
  background: linear-gradient(90deg, #222 0%, #333 50%, #222 100%);
  background-size: 200% 100%;
  animation: bannerSlide 3s ease infinite;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.4);
  transition: all 0.4s ease;
}

/* Optional: Fade in the banner */
#happyHourBanner.show {
  opacity: 1;
}

/* Animation to make it a little dynamic */
@keyframes bannerSlide {
  0% { background-position: 200% 0; }
  100% { background-position: 0 0; }
}






/*new file upload*/

.ip-line-tag {
  display: inline-flex;
  align-items: center;
  background-color: #2d3436;
  color: #fff;
  padding: 6px 10px;
  margin: 4px;
  border-radius: 18px;
  font-size: 0.9em;
  cursor: pointer;
  user-select: none;
}

.ip-text {
  margin-right: 8px;
}

.ip-remove {
  color: #ff7675;
  font-weight: bold;
  cursor: pointer;
}







/*tooltips*/

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show the tooltip text when the user hovers over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}








/* feedback */
#feedbackModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}




#feedbackModal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

button {
    border: none;
    cursor: pointer;
}









/*logo geo */
.logo-container {
  position: absolute;
  top: 25px;
  left: 60px;
  width: 300px;        /* Force rectangular width */
  height: 250px;        /* Force rectangular height */
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  background-color: #111;
}

.geo-logo {
  width: 90%;
  height: 70%;
  object-fit: cover;   /* Crops & scales image to fill box */
  display: block;
}




.geo-logo:hover {
  opacity: 1;
  transform: scale(1.05);
  transition: all 0.3s ease;
}






/*animate toast*/

#toastNotification.show {
  opacity: 1 !important;
  transform: translateY(0);
}



#toastNotification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
}

#toastNotification.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}





/*switch report ip */
/* Switch Style */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #03dac6;
}
input:checked + .slider:before {
  transform: translateX(18px);
}






/*abuse ip*/
#ipDetailsModal {
  transition: all 0.3s ease;
  opacity: 0;
}
#ipDetailsModal.show {
  opacity: 1;
}

#ipDetailsModal {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e1e;
  color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  width: 90%;
  max-width: 400px;
  opacity: 1 !important;
}




















/* Close button style */
.alert-close-btn {
    position: absolute; /* Position it at the top-right corner */
    top: 5px;
    right: 5px;
    background: transparent;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.alert-close-btn:hover {
    color: #ffcccc;
}






#alertsContainer {
    position: fixed;     /* Fix the container at the top of the page */
    top: 50px;           /* Push it down 50px from the top of the page */
    left: 50%;           /* Center the container horizontally */
    transform: translateX(-50%); /* Perfect horizontal centering */
    z-index: 9999;       /* Ensure it's above other page elements */
    width: auto;         /* You can adjust the width as needed */
    padding: 10px;       /* Add some padding around the message */
    background-color: rgba(255, 0, 0, 0.8);  /* Semi-transparent red background */
    color: white;        /* Text color */
    border-radius: 5px;  /* Rounded corners */
    display: none;       /* Initially hidden */
    opacity: 1;          /* Start with full opacity */
    transition: opacity 0.5s ease;  /* Smooth fade-in effect */
}

/* Show the alert container when a message is triggered */
#alertsContainer.show {
    display: block;      /* Ensure it's displayed */
    opacity: 1;          /* Make the container fully visible */
}

/* Optional: Fade-out effect after a set time */
#alertsContainer.fade-out {
    opacity: 0;          /* Fade out the alert container */
    transition: opacity 1s ease;
}














/* KEEP */
input::placeholder {
  text-align: center;
}




/*EMAIL '/
#emailStatus {
  font-size: 0.95em;
  padding: 0.4em 1em;
  background: #111;
  border-radius: 6px;
  max-width: 300px;
  margin-top: 10px;
  transition: opacity 0.3s ease;
}






/*new top menu */

.tools-dropdown-container {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 1000;
}

.tools-button {
  background-color: #2c3e50;
  color: white;
  padding: 10px 16px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.tools-button:hover {
  background-color: #34495e;
}

.tools-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 5px;
  background-color: #121212;
  min-width: 180px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
  z-index: 1001;
}

.tools-dropdown-content button {
  background: none;
  border: none;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  color: blue;
  cursor: pointer;
}

.tools-dropdown-content button:hover {
  background-color: #f0f0f0;
}














logo {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        .description {
            display: none; /* Initially hide the description */
            border: 1px solid #ccc;
            padding: 10px;
            background-color: #121212;
            margin-top: 10px;
        }
        .toggle-button {
            padding: 10px;
            background-color: #007BFF;
            color: white;
            border: none;
            cursor: pointer;
            font-size: 16px;
        }
        .toggle-button:hover {
            background-color: #0056b3;
        }



 /* âœ… Toggle Switch Style */
  .toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }

  .switch input:checked + .slider {
    background-color: #4CAF50;
  }

  .switch input:checked + .slider:before {
    transform: translateX(24px);
  }

  .toggle-label {
    font-weight: bold;
    color: #333;
  }

  /*Warning Message Styling */
  #privacy-warning {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    font-size: 0.95em;
    display: none;
    max-width: 100%;
    transition: all 0.3s ease;
  }

  #privacy-warning.visible {
    display: block;
  }


#privacy-enabled {
  background-color: #ccffcc;
  color: #060;
}




body {
      margin: 0;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #121212;
      color: #e0e0e0;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 2rem;
    }

/*paywall*/

#paywall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.98);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow-y: auto;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}




#paywall .paywall-container {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#paywall img {
  margin-top: 190px;
  height: 120px;
  width: auto;
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

#paywall h2 {
  font-size: 2rem;
  color: #03dac6;
  margin-bottom: 1rem;
}

#paywall p {
  font-size: 1rem;
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

#paywall .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

#paywall .button-group a {
  flex: 1 1 220px;
  background: #03dac6;
  color: #000;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

#paywall .button-group a:hover {
  background-color: #018786;
}

#paywall .footer-note {
  font-size: 0.85rem;
  color: #777;
}











    header {
      width: 100%;
      background: #121212;
      padding: 2rem;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-bottom: 2rem;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
      text-align: center;
    }
    header .logo {
      font-size: 2rem;
      font-weight: bold;
      color: #03dac6;
      margin-bottom: 0.5rem;
    }
    header .description {
      font-size: 1rem;
      max-width: 600px;
      color: #ccc;
    }
    .container {
      max-width: 800px;
      width: 100%;
      background-color: #121212;
      border-radius: 12px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
      padding: 2rem;
      margin-bottom: 2rem;
    }
    .scroll-box {
      max-height: 300px;
      overflow-y: auto;
      background-color: #2c2c2c;
      padding: 1rem;
      border-radius: 8px;
    }
    .ip-line {
      padding: 5px;
      cursor: pointer;
      transition: background 0.3s;
    }
    .ip-line:hover {
      background-color: #3a3a3a;
    }
    button {
      background-color: #03dac6;
      color: #121212;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      cursor: pointer;
      margin-top: 1rem;
      margin-right: 1rem;
    }
    button:hover {
      background-color: #018786;
    }
    .button-group {
      display: flex;
      flex-wrap: wrap;
    }
    textarea,
    input[type="file"] {
      width: 100%;
      margin-bottom: 1rem;
    }
Entered IP: <empty string>    pre {
      background-color: #1a1a1a;
      padding: 1rem;
      overflow-x: auto;
      white-space: pre-wrap;
    }
    #progressStatus {
      margin-top: 1rem;
      font-size: 0.9rem;
      color: #ccc;
    }
    #map {
      height: 400px;
      width: 100%;
      margin-top: 1rem;
      border-radius: 8px;
    }
    #countryStats {
      margin-top: 1rem;
      font-size: 0.9rem;
      color: #ccc;
      background: #2c2c2c;
      padding: 1rem;
      border-radius: 8px;
    }

    a {
      color: #03dac6;
      font-size: 1rem;
      text-decoration: none;
      margin-top: 1rem;
      display: inline-block;
      padding: 5px 10px;
      background-color: #222;
      border-radius: 5px;
      transition: background-color 0.3s ease;
      margin-top: 1rem;
      margin-right: 1rem;
    }
    a:hover {
      background-color: #444;
    }

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
#paywall > div {
  animation: fadeInScale 0.6s ease-out;
}

#paywall {
  backdrop-filter: blur(6px);
}

.file-upload-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.custom-file-upload {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;Entered IP: <empty string>
  background-color: #03dac6;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 5px 20px rgba(3, 218, 198, 0.3);
}

.custom-file-upload:hover {
  background-color: #00cbb6;
}

.file-name-text {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #aaa;
  text-align: center;
  max-width: 300px;
  word-wrap: break-word;
}

#limit-message {
  padding: 0.8rem 1.2rem;
  background-color: #ffcccc;
  border-left: 4px solid #cc0000;
  color: #990000;
  font-weight: bold;
  border-radius: 6px;
}

.export-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 10px;
}


.ai-panel {
    margin-top: 20px;
    padding: 12px;
    background-color: #1f1f1f;
    border-radius: 8px;
    color: #eee;
    font-family: monospace;
}
.cluster-entry {
    margin-bottom: 10px;
}


/* Container holding the button, form, and success message */
#alertSettingsContainer {
  position: relative; /* Ensure positioning context */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
}

/* Button Style */
#alertSettingsToggle {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-align: center;
  width: 200px; /* Fixed width for the button */
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative; /* Ensure it stays in the same position */
}

#alertSettingsToggle:hover {
  background-color: #45a049;
}

/* Success Message Style */
#alertSuccessMessage {
  color: #28a745;
  font-weight: bold;
  margin-top: 15px;  /* Space between button and success message */
  display: none;
  text-align: center;
}

/* Alert form container */
#alertFormContainer {
  display: none;  /* Hidden by default */
  margin-top: 15px; /* Ensure there's space between button and form */
  padding: 15px;
  background-color: #222;
  color: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #444;
  position: absolute;  /* Position it absolutely within its container */
  top: 100%; /* Place it just below the button */
  left: 50%; /* Center the form horizontally */
  transform: translateX(-50%); /* Adjust positioning to truly center */
}

/* When the alert form should be shown */
#alertFormContainer.show {
  display: block;
}

/* Additional styles for the alert form */
#alertForm {
  display: flex;
  flex-direction: column;
}

#alertForm input, #alertForm button {
  margin-bottom: 10px;
  padding: 8px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #666;
}

#alertForm input {
  background-color: #333;
  color: #fff;
}

#alertForm button {
  background-color: #28a745;
  color: #fff;
  cursor: pointer;
}

#alertForm button:hover {
  background-color: #218838;
}





#alertForm input, #alertForm button {
  margin-bottom: 10px;
  padding: 8px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #666;
}

#alertForm input {
  background-color: #333;
  color: #fff;
}

#alertForm button {
  background-color: #28a745;
  color: #fff;
  cursor: pointer;
}

#alertForm button:hover {
  background-color: #218838;
}


// ip reputation

/* Results container (IP Reputation results) */


/* Styling the scrollbar for Webkit browsers (Chrome, Safari) */
#ipResults {
    background-color: #2c2c2c;  /* Dark background */
    color: red;  /* White text */
    padding: 10px;
    border-radius: 5px;
    max-width: 200px;  /* Fixed width */
    max-height: 200px;  /* Fixed height */
    overflow: auto;  /* Show scrollbar if content overflows */
    margin-top: 10px;
    display: none;  /* Initially hidden */
    scrollbar-width: thin;  /* Firefox */
    scrollbar-color: #03dac6 #2c2c2c;  /* Firefox scrollbar color: thumb & track */
}

/* Styling the scrollbar for Webkit browsers (Chrome, Safari) */
#ipResults::-webkit-scrollbar {
    width: 8px;  /* Width of the scrollbar */
}

#ipResults::-webkit-scrollbar-thumb {
    background-color: #03dac6;  /* Scrollbar thumb color */
    border-radius: 10px;  /* Rounded corners for the thumb */
}

#ipResults::-webkit-scrollbar-track {
    background-color: #2c2c2c;  /* Scrollbar track color */
}



/* Styling for the input field */
#ipInput {
    width: 100%;
    padding: 10px;
    background-color: #333;  
    color: white;
    border-radius: 5px;
    border: 1px solid #555;
    margin-top: 10px;
    font-size: 16px;
}
/* Styling for the Check IP Button */
#checkIpButton {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
}

#checkIpButton:hover {
    background-color: #45a049;
}



/* Scrollable div for results */
#results {
  max-height: 90px;  /* Adjust for testing */
  overflow-y: auto;  /* Enable scrolling when content exceeds the height */
  border: 1px solid #ddd;  /* Optional border for visibility */
  padding: 10px;
  margin-top: 20px;
  background-color: #121212;  /* Background color for better visibility */
}

#repeated-ips {
  max-height: 90px;  /* Adjust height to show only a few IPs at a time */
  overflow-y: auto;  /* Scroll enabled if content exceeds */
  padding: 10px;
  border-top: 1px solid #ddd;
}

#message {
  margin-bottom: 10px;  /* Optional: separate the message from the IP list */
}



#ipList {
  max-height: 150px;           /* or however many lines you want visible */
  overflow-y: auto;            /* enables scrolling */
  display: block;
  visibility: visible;
  height: auto;                /* allows it to grow to content height */
  padding: 10px;
  background: #111;            /* just for visual feedback */
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  font-family: monospace;
}


/* Modern Dropdown Enhancement */
.tools-dropdown-container {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 1000;
}

.tools-button {
  background: linear-gradient(145deg, #03dac6, #02b3a3);
  color: #000;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(3, 218, 198, 0.2);
  transition: all 0.3s ease;
}

.tools-button:hover {
  background: linear-gradient(145deg, #02b3a3, #03dac6);
  transform: scale(1.05);
}

.tools-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 10px;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  min-width: 200px;
  z-index: 1001;
}

.tools-dropdown-content button {
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tools-dropdown-content button:hover {
  background-color: #333;
}
