@property --stopA {
	syntax: '<percentage>';
	initial-value: 0%;
	inherits: true
}

@property --stopB {
	syntax: '<percentage>';
	initial-value: 0%;
	inherits: true
}

html,
body,
.dots {
	height: 100%;
}



:root {
      --background-color: #1e1e2f;
      --color: #f0f0f5;
      --primary-color: #6200ee;
      --secondary-color: #03dac6;
      --dot-color-1: #777;
  --dot-color-2: #fff;
  --map-color-1: #888;
  --map-color-2: #fff;
  --cog-icon-url: url('https://img.icons8.com/ios-glyphs/60/ffffff/settings.png');
    
     --bg-dark: #121212;
      --bg-light: #f4f4f4;
      --text-dark: #eee;
      --text-light: #333;
      --accent-dark: #444;
      --accent-light: #ddd;
      --card-bg-dark: #1e1e1e;
      --card-header-bg-dark: #2a2a2a;
      --card-bg-light: #fff;
      --card-header-bg-light: #f0f0f0;
    }
    
    .popup2 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 300px;
  background: var(--background-color);
  color: var(--color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

body.dark-mode .popup2 {
  background: #25253a;
  color: #e0e0e5;
}

.popup-content2 {
  text-align: center;
}

.popup2 select,
.popup2 button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

.popup2 select {
  background: var(--secondary-color);
  color: black;
}

.popup2 button {
  background: var(--primary-color);
  color: white;
  cursor: pointer;
}

.popup2 button:hover {
  background: #5300e8;
}

.close-btn2 {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  cursor: pointer;
}

.popup2.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.hidden {
  display: none;
}

body.light-mode #monitors-tbody {
    color: #ffffff !important;
}

body.light-mode table {
    color: #ffffff !important;
}

body.light-mode #normal-rows {
    color: #ffffff !important;
}

body.light-mode .table-container {
    color: #ffffff !important;
}

.table-container {
    color: #ffffff;
}

body.light-mode .confirm-box {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

body.light-mode .confirm-box i {
  color: #007bff
}

body.light-mode .confirm-btn {
  color: white; 
}

body.light-mode .confirm-btn.yes {
  background: #007bff;
}

body.light-mode .confirm-btn.no {
  background: #dc3545; 
}

.confirm-box i {
  color: white; 
}

body.light-mode .confirm-box i {
  color: #007bff; 
}


body.light-mode .popup2 {
  background: rgba(255, 255, 255, 0.95); 
  color: #333; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

body.light-mode .popup2 select {
  background: #f0f0f5;
  color: #333;
  border: 1px solid #ccc;
}

body.light-mode .popup2 button {
  background: #007bff;
  color: white;
}

body.light-mode .popup2 button:hover {
  background: #0056b3;
}

body.light-mode .popup {
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .popup-content {
  color: #333;
}

body.light-mode .close-btn {
  color: #d11a2a;
}

body.light-mode .close-btn:hover {
  transform: scale(1.2);
  color: #a31422;
}

body.light-mode #webhook-url {
  background-color: #f0f0f5;
  border: 1px solid #ccc;
  color: #333;
}

body.light-mode #webhook-url::placeholder {
  color: #666;
}

body.light-mode .primary-btn {
  background-color: #007bff;
  color: white;
}

body.light-mode .primary-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

body.light-mode .secondary-btn {
  background-color: #ff4136;
  color: white;
}

body.light-mode .secondary-btn:hover {
  background-color: #d7332b;
  transform: translateY(-2px);
}

body.light-mode #webhook-list li {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

body.light-mode #webhook-list button {
  background-color: #dc3545;
}

body.light-mode #webhook-list button:hover {
  background-color: #bd2130;
}



body.dark-mode {
  --cog-icon-url: url('https://img.icons8.com/ios-glyphs/60/ffffff/settings.png');
  background-color: #1e1e2f;
  color: #f0f0f5;
  --color: #a0a0b5;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  --dot-color-1: #777;
  --dot-color-2: #fff;
  --map-color-1: #888;
  --map-color-2: #fff;
  h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.02);
  }
  
  .container {
    background-color: transparent;
    backdrop-filter: none;
  }
}

body.light-mode {
  --cog-icon-url: url('https://img.icons8.com/ios-glyphs/60/000000/settings.png');
  background-color: #d6e4ff;
  --color: #000000;
  color: #000000;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  --dot-color-1: #d0dcf5; 
  --dot-color-2: #fff;
  --map-color-1: #888;  
  --map-color-2: #d6e4ff;
  
  --soft-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  
    h1 {
    background-image: linear-gradient(90deg, #005a8d, #0077b3, #0088cc) !important;
    text-shadow: 0 2px 4px rgba(0, 82, 163, 0.2) !important;
    font-weight: 800 !important;
  }

    .stats-container {
        color: black;
    }
  h1::before {
    background-image: linear-gradient(90deg, #0077b3, #4c6ef5, #ff6b6b, #ff8c00) !important;
  }

  p {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
  }
  
  .alert,
  .report-btn,
  .popup, table {
    box-shadow: var(--soft-shadow);
  }

  th {
    background-color: white !important;
    color: #2c3e50 !important;
    border-bottom: 2px solid #e0e0e0 !important;
  }

  td, th {
    text-shadow: none !important;
  }
  
  tr.table-expanded-row td {
    background-color: #e6f3ff !important;
  }
  tr.table-expanded-row .low-latency, .high-latency, .mid-latency {
    font-size: 20px;
     -webkit-text-stroke-width: 0.1px;
  -webkit-text-stroke-color: black;
  }
  tr.table-expanded-row .low-latency {
    text-color: #008B45;
    color: #008B45;
  }
  tr.table-expanded-row .mid-latency {
    text-color: #FFA500;
    color: #FFA500;
  }
  tr.table-expanded-row .high-latency {
    text-color: #FF3030;
    color: #FF3030;
  }
  #profile-username {
    color: black;
    text-color: black;
  }
}

.container,
.alert,
.report-btn,
.popup,th,
table, td, p, .low-latency, h1, body, .dots, .cog, * {
  transition: all 0.3s ease-in-out;
}

body.dark-mode th {
  background-color: #2c2c3e !important;
  color: #00d4ff !important;
}

.login-section {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease; 
}

#login-btn {
  background-color: #7289da;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#login-btn:hover {
  background-color: #5b6eae;
}

#user-profile {
  display: none;
  top: -7px;
  right: -20px;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

#user-profile.show {
  display: block;
  opacity: 1;
}

.profile-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
    width: 100%;
}

.profile-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

#profile-username {
  font-size: 16px;
  color: white;
  opacity: 1;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-info:hover #profile-username {
  opacity: 1;
}


#logout-btn:hover {
  background-color: #d33030;
}

.fadeIn {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@media (max-width: 600px) {
  .login-section {
    top: 10px;
    right: 10px;
  }

  .profile-info img {
    width: 30px;
    height: 30px;
  }

  #profile-username {
    display: none;
  }


  #login-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .login-section {
    gap: 5px; 
  }
}


.dots {
  animation: pulse 12s linear infinite, background-move 20s linear infinite;
}

@keyframes background-move {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

.report-btn {
  position: relative;
  animation: fadeInReport 0.5s ease;
}

@keyframes fadeInReport {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

@media (min-width: 768px) {
  .profile-info {
    margin-right: 50px; 
  }
     .table-container { display: block; }
    #mobile-card-view { display: none; }
    #mobile-card-tabs { display: none; }
    .mobile-navbar,
    .mobile-section { display: none !important; }
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.chrome .dots {
 z-index: -5;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  --dot: radial-gradient(closest-side, var(--dot-color-1), var(--dot-color-2) calc(100% / sqrt(2)));
  --pattern: var(--dot) 0 0/ 2em 2em, var(--dot) 1em 1em/ 2em 2em;
  --map: radial-gradient(
    circle at 0% 0%,
    var(--map-color-1) 0%,
    var(--map-color-2) var(--stopA),
    var(--map-color-1) var(--stopB),
    var(--map-color-2) 100%
  );
  background: var(--pattern), var(--map);
  mix-blend-mode: multiply;
  filter: contrast(24) !important;
  animation: pulser 12s linear infinite;
  transform-origin: center;
  opacity: 0.3 !important;
  background-blend-mode: multiply;
          will-change: transform, opacity;
  transform: translateZ(0);
}

@-moz-document url-prefix() {
.dots {
  z-index: -5;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  --dot: radial-gradient(closest-side, var(--dot-color-1), var(--dot-color-2) calc(100% / sqrt(2)));
  --pattern: var(--dot) 0 0/ 2em 2em, var(--dot) 1em 1em/ 2em 2em;
  --map: radial-gradient(
    circle at 0% 0%,
    var(--map-color-1) 0%,
    var(--map-color-2) var(--stopA),
    var(--map-color-1) var(--stopB),
    var(--map-color-2) 100%
  );
  background: var(--pattern), var(--map);
  mix-blend-mode: multiply;
  animation: pulser 12s linear infinite;
  transform-origin: center;
  background-blend-mode: multiply;
        filter: contrast(12) !important;
    opacity: 0.35 !important;
          will-change: transform, opacity;
  transform: translateZ(0);
}
}

.dots {
  z-index: -5 !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  --dot: radial-gradient(closest-side, var(--dot-color-1), var(--dot-color-2) calc(100% / sqrt(2)));
  --pattern: var(--dot) 0 0/ 2em 2em, var(--dot) 1em 1em/ 2em 2em;
  --map: radial-gradient(
    circle at 0% 0%,
    var(--map-color-1) 0%,
    var(--map-color-2) var(--stopA),
    var(--map-color-1) var(--stopB),
    var(--map-color-2) 100%
  );
  background: var(--pattern), var(--map);
  mix-blend-mode: multiply;
  /* animation: pulser 12s linear infinite; */
  transform-origin: center;
  background-blend-mode: multiply;
      filter: contrast(10);
      opacity: 0.1;
animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .dots {
    display: none !important;
  }
}

.safari .row-lock-context {
    display: none !important;
}

.unknown .row-lock-context {
    display: none !important;
}

.unknown .row-lock-content {
    display: none !important;
}

@keyframes pulser {
	0% {
		--stopA: 0%;
		--stopB: 0%;
	}
	50% {
		--stopA: 0%;
		--stopB: 100%;
	}
	100% {
		--stopA: 100%;
		--stopB: 100%;
	}
}


/* Headings */
h1 {
  color: #00d4ff;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

p {
  color: var(--color);
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 1rem;
}

th, td {
  padding: 10px;
  text-align: center;
  border: 1px solid #333;
}

th {
  background-color: #2c2c3e;
  color: #00d4ff;
  font-weight: bold;
}

td {
  background-color: #28283c;
}

/* Row Status Styles */
tr.up td {
  background-color: #2a5a2a;
  color: #c7ffcc;
  font-weight: bold;
}

tr.operational td {
  background-color: #2a5a2a;
  color: #c7ffcc;
  font-weight: bold;
}

tr.down td {
  background-color: #5a2a2a;
  color: #ffcccc;
  font-weight: bold;
}


tr.outage td {
  background-color: #5a2a2a;
  color: #ffcccc;
  font-weight: bold;
  font-style: italic;
}

tr.unknown td {
  background-color: #3c3c50;
  color: #a0a0b5;
  font-style: italic;
}

/* tr.issues td {
  background-color: #A63D40;
  color: #F4E04D; 
  font-style: italic;
} */

tr.issues td {
  background-color: #8B8000;
  color: #FFFF00;
  font-style: italic;
}

tr.load td {
  background-color: #8B8000;
  color: #FFFF00;
  font-style: italic;
}

/* Hover Effects */
tr:hover {
  background-color: #3a3a4;
}


.alert {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #ffb84d;
  color: #333;
  padding: 10px;
  transition: opacity 1s ease-in-out;
  animation: fadeInAlert 1s ease-in-out forwards;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border-radius: 5px;
}

.alert-maintenance {
  display: none;
  align-items: center;
  justify-content: center;
  background-color:#d896ff;
  color: #333;
  padding: 10px;
  transition: opacity 1s ease-in-out;
  animation: fadeInAlert 1s ease-in-out forwards;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border-radius: 5px;
}

.alert-incident {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #FF5733;
  color: #333;
  padding: 10px;
  transition: opacity 1s ease-in-out;
  animation: fadeInAlert 1s ease-in-out forwards;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border-radius: 5px;
}

.alert-success {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #28a745;
  color: #333; 
  padding: 10px;
  transition: opacity 1s ease-in-out;
  animation: fadeInAlert 1s ease-in-out forwards;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border-radius: 5px;
}

@keyframes fadeInAlert {
  0% {
    opacity: 0;
    transform: translateY(-20px); 
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  #alert {
    width: 90%; 
  }
}

.alert-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.report-btn {
  background-color: #00d4ff;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.report-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.report-btn:active {
  transform: scale(0.98);
}

.report-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.report-btn:active::after {
  transform: translate(-50%, -50%) scale(15);
  opacity: 0;
}

.report-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.5);
}

body.dark-mode .report-btn {
  background-color: #0092b8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .report-btn:focus {
  box-shadow: 0 0 0 3px rgba(0, 146, 184, 0.5);
}


@keyframes click-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Tooltip styling */
/* .report-btn[title] {
  position: relative;
} 

td[title]:hover::after, .report-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #555;
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
} 

.report-btn[title]:hover::after {
  opacity: 1;
  visibility: visible;
}
*/

.deez {
  margin-left: 8px;
}


::-webkit-scrollbar {
  width: 8px; 
  height: 8px; 
}

::-webkit-scrollbar-track {
  background-color: #2c2c3e; 
  border-radius: 10px; 
}

::-webkit-scrollbar-thumb {
  background-color: #4a4a6c;
  border-radius: 10px; 
  border: 2px solid #2c2c3e;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #00d4ff; 
  transition: background-color 0.3s ease; 
}

::-webkit-scrollbar-thumb:active {
  background-color: #0092b8; 
}
/* Webhook Popup */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-100px);
  background-color: #2b2f3a;
  padding: 30px;
  border-radius: 12px;
  display: none;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
  min-width: 350px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
}

.popup.open {
  display: block;
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #f44336;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

#webhook-menu-btn {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 50px;
  height: 50px;
  border: none;
  background: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s ease;
}

#webhook-menu-btn:hover {
  transform: scale(1.1);
}
  
.cog-icon {
  width: 40px; 
  height: 40px;
  background: var(--cog-icon-url) no-repeat center center;
  background-size: contain;
  transform: rotate(0deg);
  transition: transform 0.5s ease;
}

#webhook-menu-btn.clicked .cog-icon {
  transform: rotate(360deg);
}

/* Modern input and button styles */
#webhook-url {
  padding: 10px;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #1c1f26;
  color: white;
  font-size: 16px;
}

#webhook-url::placeholder {
  color: #888;
}

.primary-btn {
  padding: 10px 15px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.primary-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.secondary-btn {
  padding: 10px 15px;
  background-color: #d11a2a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
  background-color: #b81424;
  transform: translateY(-2px);
}


#webhook-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#webhook-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background-color: #1e222a;
  border-radius: 6px;
  margin-top: 5px;
  color: white;
}

#webhook-list button {
  padding: 5px 10px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

#webhook-list button:hover {
  background-color: #bd2130;
}

.alert-options {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-options label {
  font-size: 14px;
  display: flex;
  align-items: center;
}

input[type="checkbox"] {
  margin-right: 10px;
}


@media screen and (max-width: 600px) {
  ::-webkit-scrollbar {
    width: 6px;
  }

  ::-webkit-scrollbar-thumb {
    background-color: #5a5a75; 
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: #00d4ff;
  }
}

@keyframes thumb-slide {
  0% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

::-webkit-scrollbar-thumb {
  animation: thumb-slide 2s ease-in-out infinite;
}


 /* Footer Styling */
    .footer {
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: #1e1e1e;
      color: #ffffff;
      text-align: center;
      padding: 15px 0;
      font-size: 1rem;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
      transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    }

    .footer a {
      text-decoration: none;
      color: #00d4ff;
      font-weight: bold;
      transition: 0.2s ease, transform 0.3s ease;
    }

    .footer a:hover {
      font-size: 17px;
      font-weight: bold;
      transition: 0.3s ease, transform 0.3s ease;
      transform: scale(1.5);
    }

    .footer:hover {
      background-color: #2b2b2b;
    }
    
/* Tooltip container */
.custom-tooltip {
  position: absolute;
  background-color: #1e1e2f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.custom-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #1e1e2f transparent transparent transparent;
}
.custom-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.test {
    cursor: auto !important;
}
table tbody tr:not(.table-expanded-row) {
  cursor: pointer;
  position: relative;
  z-index: 0;
  transition: background-color 0.3s ease;
}

table tbody tr:not(.table-expanded-row):hover {
  background-color: rgba(200, 200, 200, 0.1);
}

.table-expanded-row {
  background-color: #2b2b2b;
  color: white;
  font-size: 0.9rem;
  padding: 0;
  overflow: hidden; 
  display: table-row;
  height: 0;
  transition: 0.4s ease; 
}

.table-expanded-row td {
  padding: 10px; 
  border: 1px solid #444;
  text-align: left;
}

.table-expanded-row.open {
  height: auto; 
  transition: 0.4s ease; 
}

a {
  color: #3498db;
}

a:hover {
  color: #2980b9;
}
.low-latency {
    color: #6ee7b7;
}

.mid-latency {
    color: #fbbf24;
}

.high-latency {
    color: #f87171
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

h1 {
  position: relative;
background: linear-gradient(
  to right,
  #00d4ff 20%,  
  #03a9f4 30%,  
  #2196f3 70%, 
  #00b0ff 80%
);


  font-size: 3rem;
  font-weight: bold;
  /* background-image: linear-gradient(90deg, #005a8d, #00d4ff, #00d4ff); */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline;
  overflow: hidden;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    background-size: 500% auto;
  animation: textShine 5s ease-in-out infinite alternate;
}

/*
h1::before {
  content: 'Bot-Hosting Uptime Monitor';
  font-size: inherit;
  font-weight: inherit; 
  position: absolute;

  width: 100%; 
  height: 100%; 

  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(90deg, #00d4ff, #4c6ef5, #ff8c00, #f45b69);
  display: inline;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}

h1:hover::before {
  opacity: 1; 
}
*/

#refresh-info {
            text-align: center;
            color: #555;
        }

        #refresh-timer {
            color: #555;
            animation: pulse 1.5s infinite;
        }
@keyframes pulse {
    0% {
        color: #555; 
    }
    50% {
        color: #777; 
    }
    100% {
        color: #555;
    }
}


/* Responsive Design */
.* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-container2 {
    overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .login-section {
    top: 5px;
    right: 5px;
    flex-direction: column;
    gap: 5px;
  }

  .profile-info img {
    width: 24px;
    height: 24px;
  }

  #login-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 5px;
  }

  #alert {
    width: 95%;
    margin: 0 auto;
  }

  .report-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .footer {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .profile-info img {
    width: 20px;
    height: 20px;
  }

  #login-btn {
    font-size: 10px;
    padding: 4px 8px;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.9rem;
  }

  th, td {
    padding: 3px;
  }
}

tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}


.table-expanded-row {
  animation: rowExpand 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rowExpand {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}

.report-btn {
  position: relative;
  overflow: hidden;
}

.report-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.report-btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.popup {
  transform: translate(-50%, -50%) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup.open {
  transform: translate(-50%, -50%) scale(1);
}

.icon-header i {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  width: 20px;
}

th {
  white-space: nowrap;
}


@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
  }
  
  
  .status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
  }

  .status-indicator.up { background: #4CAF50; }
  .status-indicator.load { background: #FFC107; animation: pulse 1s infinite; }
  .status-indicator.down { background: #F44336; }
  .status-indicator.issues { background: #A63D40; }
  
  
  
   @keyframes glow {
    from { box-shadow: 0 0 5px rgba(33,150,243,0.2); }
    to { box-shadow: 0 0 20px rgba(33,150,243,0.4); }
  }
.context-menu {
  min-width: 180px;
}


.fa-copy {
  color: #2196F3;
}
 
.fa-gauge {
  color: #00D1FF;
}
 

.alert-box {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(30, 30, 47, 0.95);
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  z-index: 9999;
}

.alert-box.fade-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.alert-box.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
}

.alert-close {
  background: none;
  border: none;
  font-size: 18px;
  color: white;
  margin-left: 10px;
  cursor: pointer;
}

.alert-box.success { background: #28a745; }
.alert-box.error { background: #dc3545; }
.alert-box.warning { background: #ffc107; color: black; }
.alert-box.info { background: #007bff; }


.confirm-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 30, 47, 0.95);
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 300px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  z-index: 9999;
}

.confirm-box i {
  font-size: 40px;
  margin-bottom: 10px;
  display: block;
}

.confirm-box p {
  font-size: 16px;
  margin: 10px 0;
}

.confirm-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.confirm-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.confirm-btn.yes {
  background: #28a745;
  color: white;
}

.confirm-btn.no {
  background: #dc3545;
  color: white;
}

.confirm-btn:hover {
  filter: brightness(1.2);
}

.confirm-box.fade-in {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.confirm-box.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}
  tr[draggable="true"] {
    cursor: grab !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

tr.dragging {
  opacity: 0.5;
  transform: scale(0.98);
  transform-origin: center; 
  cursor: grabbing !important;
}

tr.drag-over {
  position: relative;
}


  
@media screen and (max-width: 600px) {
  table {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2rem;
  }
  
  div {
    font-size: 0.9rem;
  }
  
    .table-expanded-row p {
    font-size: 12px; 
    line-height: 1.1;
    padding: 2px;
  }

  .table-expanded-row {
    font-size: 12px;
    padding: 8px;
  }

  .table-expanded-row div {
    gap: 10px;
  }

  .table-expanded-row .low-latency {
    font-size: 12px; 
  }

  .table-expanded-row .mid-latency {
    font-size: 12px;
  }

  .table-expanded-row .high-latency {
    font-size: 12px;
  }
}

@media (max-height: 500px) {
    #webhook-menu-btn {
        position: absolute !important; 
    }
}

@media (max-width: 768px) {
    #webhook-menu-btn {
        display: none !important;
    }
 .fifthrow {
        display: none !important;
    }
  h1::before {
    opacity: 0 !important;
  }
  .custom-tooltip {
    display: none;
  }
  td[title]:hover::after, .report-btn[title]:hover::after {
    display: none;
  }
  table tr, .report-btn, td {
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  * {
    -webkit-tap-highlight-color: transparent;
  }
  .report-btn {
    user-select: none;
  }
  
    .table-expanded-row p {
    font-size: 14px; 
    line-height: 1.2;
    padding: 3px;
  }

  .table-expanded-row {
    font-size: 14px;
    padding: 9px;
  }

  .table-expanded-row div {
    gap: 15px; 
  }

  .table-expanded-row .low-latency {
    font-size: 14px;
  }

  .table-expanded-row .mid-latency {
    font-size: 14px;
  }

  .table-expanded-row .high-latency {
    font-size: 14px;
  }
}

#mobile-profile-section {
  display: flex;
  flex-direction: column;
    z-index: 1000;
}

.mobile-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--card-header-bg-dark);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

#mobile-profile-name {
  font-size: 16px;
  font-weight: bold;
    margin-top: 12px;
    position: absolute;

}

#logout-btn {
  background-color: red;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 72%; 
  transform: translateY(-50%);
    z-index: 9999;
}

#logout-btn2 {
  background-color: red;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  right: 65px;
  position: absolute;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#logout-btn2.show {
  opacity: 1;
  transform: translateY(0);
  animation: logoutSlideIn 0.3s ease forwards;
}

@keyframes logoutSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#logout-btn2:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
#logout-btn2:active {
  transform: scale(0.98) !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.login-section, .date-picker, .context-menu {
    user-select: none; 
}

@media (max-width: 1000px) {
  #profile-username {
    display: none;
    cursor: default !important;
  }
  .profile-info {
      position: relative;
    top: -9px;  
    right: -30px; 
    padding: 5px; 
      width: 6px !important;
  }
    #logout-btn2 {
              position: relative;
    top: -9px;  
    right: -30px; 
    padding: 5px;
    }
    #login-btn {
        position: relative;
          width: 16vw; 
  height: 4vh;
  font-size: 1.1vw;
        top: -10px !important;
    } 
    #webhook-menu-btn {
        position: absolute;
    }
}

.profile-info {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
}

#mobile-profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

#mobile-profile-login {
  display: flex;
  justify-content: center;
  padding: 20px;
    z-index: 9999;
}

#mobile-profile-login button {
  background-color: #7289DA;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  z-index: 9999;
    box-sizing: border-box;
}

#mobile-webhook-login {
  display: flex;
  justify-content: center;
  padding: 20px;
}

#mobile-webhook-login button {
  background-color: #7289DA;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  z-index: 999;
    
}

#mobile-webhook-url {
  width: 100%;             
  max-width: 100%;        
  padding: 10px;        
  margin-top: 10px;      
  box-sizing: border-box; 
}

* {
    -webkit-tap-highlight-color: transparent;
}
.head3 {
    z-index: 5;
    position: relative;
}
@media screen and (max-width: 768px) {
  #mobile-webhook-url {
    max-width: 100%;      
  }

  .mob2 .sec2 {
    padding: 0 10px;   
  }
}


    @media screen and (max-width:768px) {
      .table-container { display: none; }
        #mobile-card-view { display: none; }
        #mobile-card-tabs { display: none; }
      .mobile-navbar,
      .mobile-section { display: block; }
      .table-container { overflow-x: auto; }
      .footer, .login-section { visibility: hidden; }
        
      body.light-mode .menu-item i {
  color: black;
}
    }

    .mobile-navbar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 50px;
      background: var(--accent-dark);
      display: flex;
      justify-content: space-around;
      align-items: center;
      z-index: 1000;
      padding: 0 5px;
    }

body.light-mode .mobile-navbar {
    background: var(--accent-light);
    color: black;
}

body.light-mode .mobile-navbar .nav-btn {
    color: black;
}

    .mobile-navbar .nav-btn {
      background: none;
      border: none;
      color: #fff;
      font-size: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
    }
    .mobile-navbar .nav-btn i { font-size: 20px; }
    .mobile-navbar .nav-btn img {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      object-fit: cover;
    }


.mobile-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--card-header-bg-dark);
  position: absolute;   
  top: 0;               
  width: 100%;        
}

.mobile-section .section-content {
  padding: 60px 10px 10px 10px;
  font-size: 14px;         
}

#mobile-webhook-url {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  box-sizing: border-box;
}


#mobile-save-webhook-btn {
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  margin-top: 10px;
    z-index: 9999;
}

#mobile-delete-webhook-btn {
  width: 100%;
  padding: 10px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 4px;
  margin-top: 10px;
    z-index: 9999;
}

@media screen and (max-width: 768px) {
  .mobile-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .mobile-section.open {
    max-height: 300px;
    opacity: 1;
      bottom: 50px;
  }

  .mobile-section {
    padding-top: 50px;  
  }
}
    .mobile-section {
      position: fixed;
      bottom: -400px;
      left: 0;
      right: 0;
      max-height: 0;
      overflow: hidden;
      background: var(--accent-dark);
      transition: max-height 0.3s ease, opacity 0.3s ease;
      opacity: 0;
      z-index: 999;
      border-top: 1px solid #555;
    }
    body.light-mode .mobile-section { background: var(--accent-light); }
    .mobile-section.open {
      max-height: 300px; 
      opacity: 1;
    }
    .mobile-section .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      background: var(--card-header-bg-dark);
    }
    body.light-mode .mobile-section .section-header {
      background: var(--card-header-bg-light);
    }

body.light-mode .black {
    color: black !important;
}
    .mobile-section .section-header span {
      font-size: 16px;
      font-weight: bold;
    }
    .mobile-section .section-header button {
      background: none;
      border: none;
      color: inherit;
      font-size: 20px;
      cursor: pointer;
    }
    .mobile-section .section-content {
      padding: 10px;
      font-size: 14px;
    }

#mobile-webhook-section {
    z-index: 1001;
}
    #mobile-webhook-section input[type="url"] {
      width: 100%;
      padding: 8px;
      margin-bottom: 10px;
      border: none;
      border-radius: 4px;
    }
    #mobile-webhook-section .alert-options label {
      display: block;
      margin-bottom: 5px;
    }
    #mobile-webhook-section button {
      padding: 8px 12px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      margin-top: 5px;
        box-sizing: border-box;
        z-index: 99999;
    }

.profile-info2 {
    display: none;
}
    #mobile-profile-section .profile-info {
      display: flex;
      align-items: center;
      cursor: pointer;
    }
    #mobile-profile-section .profile-info img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 10px;
    }

    #mobile-settings-section .menu-item {
      display: flex;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid #555;
      cursor: pointer;
    }
    #mobile-settings-section .menu-item i {
      margin-right: 8px;
    }

    #mobile-card-view {
      display: none;
      flex-direction: column;
        
    grid-template-columns: 1fr;
    gap: 20px;
    transition: all 0.3s ease-in-out;

      padding: 10px;
      margin-bottom: 70px;
    }
#mobile-card-tabs {
    display: none;
}
    .card {
      background: var(--card-bg-dark);
      border: 1px solid #555;
      border-radius: 8px;
      overflow: hidden;
      transition: transform 0.2s ease;
    }
    .card:hover { transform: translateY(-3px); }
    .card-header, .card-footer {
      background: var(--card-header-bg-dark);
      padding: 10px;
    }
    body.light-mode .card {
      background: var(--card-bg-light);
      border: 1px solid #ccc;
    }
    body.light-mode .card-header,
    body.light-mode .card-footer {
      background: var(--card-header-bg-light);
    }
    .card-header h3 { margin: 0; font-size: 16px; }
    .card-body { padding: 10px; font-size: 14px; }
    .card-expanded {
      margin-top: 10px;
      border-top: 1px dashed #777;
      padding-top: 10px;
    }

    #mobile-card-view { overflow-x: auto; }

.card-expanded {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.card.expanded .card-expanded {
  max-height: 500px; 
  opacity: 1;
}

.alert-box {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(30, 30, 47, 0.95);
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  z-index: 9999;
  max-width: 90%;
  box-sizing: border-box;
  width: auto;
}

@media screen and (max-width: 480px) {
  .alert-box {
    font-size: 14px;
    padding: 12px 15px; 
    max-width: 85%; 
    width: auto; 
  }

  .alert-box i {
    font-size: 16px;
  }
}

.mobile-section .section-header button {
  margin: 0;
}


@media screen and (max-width: 768px) {
  .alert-box {
    font-size: 10px;
    padding: 14px 18px;
    max-width: 90%;
    width: auto; 
  }

  .alert-box i {
    font-size: 10x;
  }
}

.status.up::after,
.status.operational::after {
  background-color: #2ecc71; 
}

.status.down::after {
  background-color: #e74c3c; 
}

.status.load::after {
  background-color: #f39c12; 
}

.status.issues::after {
    background-color: #A63D40;
}

.status.maintenance::after {
  background-color: #9b59b6;
}

.status.unknown::after {
  background-color: #95a5a6;
}


.status::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 8px;
  background-color: currentColor; 
  animation: pulse 1.5s infinite;
}


.status2.up::after,
.status2.operational::after {
  background-color: #2ecc71; 
}

.status2.down::after {
  background-color: #e74c3c; 
}

.status2.load::after,
.status2.issues::after {
  background-color: #f39c12; 
}

.status2.maintenance::after {
  background-color: #9b59b6;
}

.status2.unknown::after {
  background-color: #95a5a6;
}


.status2::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 8px;
  background-color: currentColor; 
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

#mobile-card-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

#mobile-card-tabs button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background-color: var(--tab-bg-dark, #333);
  color: var(--tab-text-dark, #fff);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

#mobile-card-tabs button:hover {
  transform: scale(1.05);
}

#mobile-card-tabs button.active {
  background-color: var(--tab-active-bg-dark, #555);
}

body.light-mode #mobile-card-tabs button {
  background-color: var(--tab-bg-light, #eee);
  color: var(--tab-text-light, #333);
}

body.light-mode #mobile-card-tabs button.active {
  background-color: var(--tab-active-bg-light, #ccc);
}



  #mobile-card-view {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
    padding: 10px;
    transition: all 0.3s ease-in-out;
  }

  #mobile-card-tabs {
    display: none; 
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
  }

  .card-tab {
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .card-tab:hover {
    background: #e0e0e0;
  }

  .card-tab.active {
    background: #007bff;
    color: #fff;
  }

  @media (min-width: 768px) {
      .status2 {
          display: none !important;
      }
  #mobile-card-view {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
    align-items: start; 
  }
  }

@-moz-document url-prefix() {
  .dots {
   /* display: none !important; */
    filter: contrast(12) !important;
    opacity: 0.35 !important;
    /* mix-blend-mode: normal !important;
       background-blend-mode: normal !important; */
  }
}

@media not all and (min-resolution:.001dpcm){ 
@supports (-webkit-appearance:none) and (not (stroke-color:transparent)) {
    .dots {
      display: none !important;
    }
}}

@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0){ 
@media {
    .dots {
      display: none !important;
    }
}}

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .date-picker {
      max-width: 240px;
      margin: 20px auto;
      padding: 5px;
      background: transparent;
      animation: fadeIn 0.3s ease-out;
    }
    .date-picker input {
      width: 100%;
      padding: 8px;
      font-size: 14px;
      border: 1px solid #ccc;
      border-radius: 4px;
      background-color: #f9f9f9;
      color: #333;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      transition: background-color 0.3s, border-color 0.3s;
    }
    .date-picker input:focus {
      outline: none;
      border-color: #3498db;
      box-shadow: 0 0 5px rgba(52,152,219,0.5);
    }
    
    body.dark-mode .date-picker input {
      background-color: #555;
      border: 1px solid #777;
      color: #fff;
      box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    }
    
    @media (max-width: 768px) {
      .date-picker {
        display: none !important;
      }
    }
    
    .flatpickr-calendar {
      width: 240px !important;
      padding: 10px !important;
      border-radius: 8px !important;
      box-shadow: 0 4px 8px rgba(0,0,0,0.15);
      animation: fadeIn 0.3s ease-out;
      font-family: 'Arial', sans-serif;
      font-size: 14px;
    }
    .flatpickr-day {
      width: 30px;
      height: 30px;
      line-height: 30px;
      margin: 2px;
      transition: background-color 0.2s, color 0.2s;
      border-radius: 4px;
      text-align: center;
    }
    .flatpickr-day:hover {
      background-color: #3498db;
      color: #fff;
    }
    .flatpickr-day.selected,
    .flatpickr-day.today {
      background-color: #3498db;
      color: #fff;
    }
    
    .flatpickr-months {
      text-align: center;
      padding: 5px 0;
      border-bottom: 1px solid;
      margin-bottom: 5px;
      border-radius: 6px 6px 0 0;
    }
    .flatpickr-current-month {
      font-size: 16px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .flatpickr-current-month span,
    .flatpickr-current-month input {
      margin: 0 4px;
    }
    
    .flatpickr-prev-month, .flatpickr-next-month {
      font-size: 18px;
      width: 30px;
      height: 30px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      user-select: none;
      margin: 0 5px;
    }
    body.light-mode .flatpickr-prev-month,
    body.light-mode .flatpickr-next-month {
      color: #333;
        height: 44px;
    }
    body.dark-mode .flatpickr-prev-month,
    body.dark-mode .flatpickr-next-month {
      fill: rgb(248 243 243 / 90%);
        height: 44px;
    }

/*    body.light-mode .flatpickr-prev-month:hover,
    body.light-mode .flatpickr-next-month:hover {
filter: sepia(100%) hue-rotate(190deg) saturate(500%);
    } */
    body.dark-mode .flatpickr-prev-month:hover,
    body.dark-mode .flatpickr-next-month:hover {
filter: sepia(100%) hue-rotate(190deg) saturate(500%);
}

body.dark-mode .arrowUp::after, body.dark-mode .arrowDown::after {
    filter: invert(1);
}
    body.light-mode .flatpickr-calendar {
      background-color: #fff;
      border: 1px solid #ccc;
      color: #333;
    }
    body.light-mode .flatpickr-months {
      background-color: #f2f2f2;
      border-color: #ccc;
    }
    body.light-mode .flatpickr-day {
      background-color: #fff;
      color: #333;
    }
    body.light-mode .flatpickr-weekdays {
      background-color: #f2f2f2;
    }
    body.light-mode .flatpickr-weekday {
      color: #333;
    }

    body.dark-mode .flatpickr-calendar {
      background-color: #3a3a3a;
      border: 1px solid #555;
      color: #ddd;
    }
    body.dark-mode .flatpickr-months {
      background-color: #444;
      border-color: #666;
    }
    body.dark-mode .flatpickr-current-month {
      color: #fff;
      font-weight: bold;
    }
    body.dark-mode .flatpickr-day {
      background-color: #3a3a3a;
      color: #ccc;
    }
    body.dark-mode .flatpickr-day:hover {
      background-color: #555;
      color: #fff;
    }
    body.dark-mode .flatpickr-weekdays {
      background-color: #444;
    }
    body.dark-mode .flatpickr-weekday {
      color: #fff !important;
      font-weight: 500;
    }

.flatpickr-calendar {
  min-width: 328px !important;
  padding: 10px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  animation: fadeIn 0.3s ease-out;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
}

.flatpickr-day {
  width: 32px; 
  height: 32px;   
  line-height: 32px;
  margin: 2px;
  transition: background-color 0.2s, color 0.2s;
  border-radius: 4px;
  text-align: center;
}

body.light-mode .flatpickr-disabled,
body.light-mode .flatpickr-disabled:hover {
  color: #888;        
  cursor: not-allowed;
}

body.dark-mode .flatpickr-disabled,
body.dark-mode .flatpickr-disabled:hover {
  color: #999;
  cursor: not-allowed;
}

.input-wrapper {
      position: relative;
    }
    .input-wrapper::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      height: 2px;
      width: 0;
      background-color: #3498db;
      transition: width 0.3s ease;
    }
    .input-wrapper:focus-within::after {
      width: 100%;
    }
    
    .date-picker input {
      width: 100%;
      padding: 8px;
      font-size: 14px;
      border: 1px solid #ccc;
      border-radius: 4px;
      background-color: #f9f9f9;
      color: #333;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      transition: border-color 0.3s, box-shadow 0.3s;
    }
    .date-picker input:focus {
      outline: none;
      border-color: #3498db;
      box-shadow: 0 0 5px rgba(52,152,219,0.5);
    }
    
    body.dark-mode .date-picker input {
      background-color: #555;
      border: 1px solid #777;
      color: #fff;
      box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    }
    body.dark-mode .date-picker input::placeholder {
      color: #ddd;
    }

button.disabled,
button:disabled {
  cursor: not-allowed;
}

  .spinner {
    position: absolute;
    top: 50%;
    right: -85px;
    transform: translateY(-50%);
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #09f;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
  }

.stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin: 5px 0;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.stat-item {
  flex: 1 1 30%;
  text-align: center;
  margin: 8px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

body {
  font-family: 'Roboto', sans-serif;
}

p {
    font-family: 'Poppins', sans-serif !important;
}

button {
    font-family: 'Roboto', sans-serif !important;
}

/* h1, .main-title {
  font-family: 'Montserrat', sans-serif;
} */

body.dark-mode .priority-monitors-section,
body.dark-mode .priority-monitors-section-mobile {
    border-top-color: #444;
}

body.dark-mode .priority-monitors-section h4,
body.dark-mode .priority-monitors-section-mobile h4 {
    color: #eee;
}

body.dark-mode .priority-monitor-filter {
    background-color: #333;
    color: #ddd;
    border-color: #555;
}

body.dark-mode .priority-monitor-filter::placeholder {
    color: #888;
}

body.dark-mode .monitor-list-scrollable {
    background-color: #2a2a2a;
    border-color: #444;
    color: #ddd;
}

body.dark-mode .monitor-list-scrollable label:hover {
    background-color: #383838;
}

body.dark-mode .monitor-list-scrollable input[type="checkbox"] {
     accent-color: #58a6ff;
}


body.light-mode .priority-monitors-section,
body.light-mode .priority-monitors-section-mobile {
    border-top-color: #ddd;
}

body.light-mode .priority-monitors-section h4,
body.light-mode .priority-monitors-section-mobile h4 {
    color: #333;
}

body.light-mode .priority-monitor-filter {
    background-color: #fff;
    color: #333;
    border-color: #ccc;
}

body.light-mode .priority-monitor-filter::placeholder {
    color: #999;
}

body.light-mode .monitor-list-scrollable {
    background-color: #f7f7f7;
    border-color: #ddd;
    color: #333;
}

body.light-mode .monitor-list-scrollable label:hover {
    background-color: #e9e9e9;
}

body.light-mode .monitor-list-scrollable input[type="checkbox"] {
    accent-color: #0366d6
}


h2, .secondary-title {
  font-family: 'Poppins', sans-serif;
}


@media (max-width: 768px) {
  .stat-item {
    flex: 1 1 100%;
  }
      h1, .main-title {
    font-size: 2em;
  }
  h2, .secondary-title {
    font-size: 1.75em;
  }
}

.c-normal {
  cursor: default !important;
}
.c-select {
  cursor: text !important;
}
.c-normal-i {
  user-select: none !important;
  cursor: default !important;
}
.no-select {
    user-select: none !important;
}

