/*subscribe*/
.floating-subscribe {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #6c5ce7;
  color: white;
  padding: 12px 18px;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s;
  z-index: 1000;
}

.floating-subscribe:hover {
  background: #a29bfe;
}







/* ✅ Define keyframes globally (valid CSS) */
@keyframes pulseGlowGreen {
  0%   { box-shadow: 0 0 8px rgba(50,205,50,0.5); }
  50%  { box-shadow: 0 0 18px rgba(0,255,127,0.9); }
  100% { box-shadow: 0 0 8px rgba(50,205,50,0.5); }
}


/* 🔘 Standard filter buttons */
.filter-panel button,
.modal-content button {
  background: linear-gradient(to right, #ff8c00, #ffa500);
  color: #111;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 8px 4px;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
}

.modal-content button:hover {
  background: linear-gradient(to right, #ffa500, #ff8c00);
  transform: scale(1.03);
}

/* 📆 Range buttons (24h / 7d / 30d) */
.filter-age-group button {
  padding: 8px 12px;
  margin-right: 8px;
  margin-top: 8px;
  background-color: #333;
  color: #eee;
  border: 1px solid #888;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}


.filter-age-group button:hover {
  background-color: #444;
  border-color: orange;
}




/* 🟦 CLEARLY visible blue active button */
button.filter-age.active {
  background-color: #0066cc !important;
  color: #ffffff !important;
  border: 2px solid #3399ff !important;
  font-weight: bold;
  transform: scale(1.08);
}






.filter-panel {
  position: fixed;
  top: 70px;
  left: -260px;
  width: 250px;
  background-color: #222;
  color: #fff;
  padding: 15px;
  transition: left 0.3s ease;
  z-index: 10010;
  border-right: 2px solid orange;
}

.filter-panel.active {
  left: 0;
}

#toggleFilterBtn {
  position: fixed;
  top: 70px;
  left: 0;
  z-index: 10020;
  background: orange;
  color: #111;
  border: none;
  padding: 8px 12px;
  font-weight: bold;
}










.floating-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 10020;
  background-color: orange;
  color: #111;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.filter-age-group button {
  padding: 8px 12px 8px 28px; /* increased left padding */
  margin-right: 8px;
  margin-top: 8px;
  background-color: #333;
  color: #eee;
  border: 1px solid #888;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s ease;
}



.report-btn {
  background: #ff5e5e;
  color: white;
  border: none;
  padding: 6px 10px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.report-btn:hover {
  opacity: 0.9;
}

.report-btn:disabled {
  background: #777;            /* Gray background */
  color: #ccc;                 /* Dimmed text */
  cursor: not-allowed;
  opacity: 0.8;
}








/*drama*/
#hackerWarning {
  animation: flicker 0.15s infinite alternate;
}

@keyframes flicker {
  0%   { opacity: 1; }
  100% { opacity: 0.94; }
}




/*export*/
/* Floating Export Button */
#exportFab {
  position: fixed;
  top: 70px;
  
  right: 20px;
  background-color: orange;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10050;
  cursor: pointer;
  transition: background-color 0.3s;
}
#exportFab:hover {
  background-color: darkorange;
}

/* Export Menu Styling */
#exportMenu {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 10051;
}

.export-box {
  background: #222;
  color: white;
  padding: 14px;
  border-radius: 8px;
  width: 240px;
  max-height: 400px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font-size: 14px;
}


.export-box label {
  display: block;
  margin-bottom: 5px;
}
.export-box button {
  padding: 6px 12px;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.export-box button:first-child {
  background-color: #28a745;
  color: white;
}
.export-box button:last-child {
  background-color: #dc3545;
  color: white;
}

#exportFields {
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 10px;
}





/*pulse*/
@keyframes whitePulse {
  0%, 100% {
    color: red;
    //text-shadow: 0 0 6px white;
  }
  50% {
    color: white;
    //text-shadow: 0 0 18px white;
  }
}

.pulse-white {
  animation: whitePulse 1.4s ease-in-out infinite;
}


 /*  Style search bar */
  #searchBar {
    background-color: purple;   /* Make it purple */
    padding: 10px;
    border-radius: 8px;
    color: white;               /* White text for better contrast */
    font-family: Arial, sans-serif;
  }

  #searchBar button {
    margin-left: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    background-color: white;
    color: purple;
    font-weight: bold;
    cursor: pointer;
  }

  #searchBar button:hover {
    background-color: lightgray;
  }

  #searchBar input {
    padding: 5px;
    border-radius: 4px;
    border: none;
    margin-right: 5px;
  }

#toastContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

#whatIsPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
function showToast  display: block; /* no flex needed */
}

#whatIsContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* true centering magic */
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 80%;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  text-align: left;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}


#closeWhatIs {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
}


#whatIsPanel {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



/* Make search bar wrap on small screens */
#searchBar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

/* Make buttons and input fields mobile-friendly */
#searchBar input,
#searchBar button {
  font-size: 14px;
  padding: 8px 12px;
  flex-shrink: 0;
}

/* Allow map to resize with screen */
#map {
  height: 80vh;
  min-height: 400px;
}

/* Responsive legend and IP counter text */
.legend {
  font-size: 13px;
  line-height: 1.4em;
}

/* Ensure toast and modals scale well */
.toast {
  font-size: 15px;
  padding: 14px 20px;
}

#whatIsContent {
  width: 95%;
  max-width: 95vw;
  padding: 15px;
}

/* Improve button clickability */
#searchBar button {
  min-width: 40px;
}

/* On very small screens stack buttons */
@media screen and (max-width: 480px) {
  #searchBar {
    justify-content: center;
  }

  #searchBar button,
  #searchBar input {
    flex: 1 1 auto;
    min-width: 100px;
  }
}

.legend {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

}


.draggable {
  cursor: move;
}


/* Base toast styling (unchanged) */
.toast {
  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: 10010;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
}

/* OS-specific colors */
.toast-linux    { background-color: #3c763d; color: #e6ffe6; } /* green */
.toast-windows  { background-color: #004a99; color: #dbeeff; } /* blue */
.toast-mac      { background-color: #444;    color: #f0f0f0; } /* dark gray */
.toast-android  { background-color: #2e7d32; color: #d0ffd6; } /* android green */
.toast-ios      { background-color: #1d1d1f; color: #f8f8f8; } /* blackish */
.toast-unknown  { background-color: #666;    color: #eee;    }

