* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0d0d17;
  color: #e0f0ff;
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100dvh;
  padding: 16px;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 180, 255, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(180, 0, 255, 0.06) 0%, transparent 30%);
}

.container {
  max-width: 100%;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin: 1.2rem 0 1.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #00d4ff, #a855f7, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(100, 200, 255, 0.4);
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.8rem 0;
  color: #7070aa; 
  font-size: 0.9rem;
} 

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(120, 120, 180, 0.3); 
}

.divider span {
  padding: 0 1.4rem;
} 



.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS scrolling */
  scrollbar-width: thin;
  scrollbar-color: #5a7aff #1a1f38;
  border-radius: 14px;
  background: rgba(20, 25, 50, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(80, 120, 255, 0.18);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(60, 140, 255, 0.08);
}

/* Custom scrollbar for WebKit browsers */
.table-wrapper::-webkit-scrollbar {
  height: 8px;
}
.table-wrapper::-webkit-scrollbar-track {
  background: #0f1325;
  border-radius: 10px;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #5a7aff, #a855f7);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(90, 122, 255, 0.6);
}

table {
  width: 100%;
  min-width: 640px;          /* forces horizontal scroll on small screens */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(90, 120, 255, 0.12);
  white-space: nowrap;
}

th {
  background: linear-gradient(180deg, rgba(40, 60, 120, 0.7), rgba(20, 35, 80, 0.7));
  color: #a5d4ff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

td {
  color: #d0e0ff;
}

tr {
  transition: all 0.13s ease;
}

tr:hover {
  background: rgba(60, 90, 180, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 120, 255, 0.12);
}

.status {
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.status.active   { background: rgba(0, 220, 140, 0.18); color: #00ffaa; }
.status.warning  { background: rgba(255, 180, 60, 0.18); color: #ffcc55; }
.status.critical { background: rgba(255, 70, 90, 0.18);  color: #ff5a6e; }

@media (max-width: 480px) {
  .header { font-size: 1.3rem; }
  th, td { padding: 12px 10px; font-size: 0.92rem; }
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 60%; /* Full width */
  height: 60%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background: linear-gradient(135deg, #0d001a 0%, #0a011f 50%, #000814 100%);
  border: 1px solid rgba(120, 80, 255, 0.18);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.6),
    0 0 0 1px rgba(100, 80, 255, 0.12) inset;
  position: relative;
  color: #e0e0ff;
  margin: auto;
  width: 80%;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.button {
    display: inline-block; /* Allows padding and margin, behaves like a button */
    background-color: #007bff; /* Button background color */
    color: white; /* Text color */
    padding: 10px 20px; /* Spacing inside the button */
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove default link underline */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Changes cursor to a hand pointer */
    border: none; /* Remove default button border */
}

.button:hover {
    background-color: #0056b3; /* Darker color on hover */
}
