body {
      margin: 0;
      padding: 2rem;
      background-color: #1e1e2f;
      font-family: 'Roboto', sans-serif;
      color: #f0f0f0;
      text-align: center;
    }

    .logo {
      width: 120px;
      margin-bottom: 0.5rem;
      animation: pulse 2.5s infinite;
    }

    h1 {
      color: #c084f5;
      margin-bottom: 2rem;
      font-size: 2rem;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
      text-align: left;
      align-items: stretch;
    }

    .card {
      background-color: #2b2b3d;
      padding: 1.5rem;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(192, 132, 245, 0.1);
      min-height: 220px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    ul {
      padding-left: 0;
      margin-top: 1rem;
      list-style: none;
    }

    ul li {
      margin-bottom: 0.7rem;
      word-break: break-word;
    }

    a {
      color: #00bcd4;
      text-decoration: none;
      font-weight: bold;
    }

    a:hover {
      text-decoration: underline;
    }

    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }
	.logo-wrapper {
  text-align: center;
}

.nav {
  margin-bottom: 2rem;
  text-align: center;
}

.nav a {
  color: #00bcd4;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

form {
  max-width: 500px;
  margin: 0 auto;
  background-color: #2b2b3d;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(192, 132, 245, 0.1);
  text-align: left;
}

label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: bold;
  color: #00bcd4;
}

input {
  width: 100%;
  padding: 0.7rem;
  border-radius: 6px;
  border: none;
  background-color: #383854;
  color: #f0f0f0;
}

input:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 188, 212, 0.6);
}

.serial-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

button,
.generate-btn {
  margin-top: 1.5rem;
  background-color: #c084f5;
  color: #fff;
  font-weight: bold;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover,
.generate-btn:hover {
  background-color: #a46ce0;
}

#expiry_date_picker {
  display: none;
  margin-top: 1rem;
}

body.login-page {
  background: linear-gradient(135deg, #0F2027, #203A43, #2C5364);
  font-family: 'Roboto', sans-serif;
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

.login-container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem 3rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 360px;
}

.login-container h2 {
  margin-bottom: 1rem;
  font-size: 24px;
  font-weight: 700;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin: 0.5rem 0;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

.login-container button {
  width: 50%;
  display: block;
  margin: 1rem auto 0 auto;
  padding: 10px;
  background-color: #00bcd4;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-container button:hover {
  background-color: #0097a7;
}

.error {
  color: #ff6b6b;
  margin-top: 0.5rem;
  font-size: 14px;
}

.logo {
  height: 130px;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 8px #8e44ad; }
  50%  { box-shadow: 0 0 20px #c084f5, 0 0 40px #a55eea; }
  100% { box-shadow: 0 0 8px #8e44ad; }
}

.superadmin-page {
  background-color: #1e1e2f;
  color: #f0f0f0;
  font-family: 'Roboto', sans-serif;
  padding: 2rem;
  text-align: center;
}

.card {
  background-color: #2b2b3d;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(192, 132, 245, 0.1);
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

form input,
form select {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: none;
  background-color: #383854;
  color: #f0f0f0;
}

form button {
  background-color: #c084f5;
  color: white;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form button:hover {
  background-color: #a46ce0;
}

table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
}

table th,
table td {
  padding: 0.8rem;
  border-bottom: 1px solid #444;
  text-align: left;
}

table th {
  background-color: #421b66;
  color: white;
}

a {
  color: #00bcd4;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

.logo {
  width: 120px;
  margin-bottom: 0.5rem;
  animation: pulse 2.5s infinite;
}
.action-link {
  color: #ff6b6b;
  font-weight: bold;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.action-link:hover {
  background-color: #ff4c4c;
  color: #fff;
}
.back-button {
  background: linear-gradient(145deg, #6a2ebf, #9f5efc);
  color: #ffffff;
  font-weight: bold;
  padding: 0.7rem 1.3rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 10px rgba(160, 84, 255, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
}

.back-button:hover {
  background: linear-gradient(145deg, #7a3eff, #c084f5);
  box-shadow: 0 0 12px rgba(192, 132, 245, 0.5);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  max-width: 1000px;
  margin: 2rem auto;
}

.card {
  background-color: #1e152f;
  color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


.card.full-width {
  grid-column: 1 / -1;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.audit-table th,
.audit-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #573e7f;
  text-align: left;
  font-size: 0.95rem;
  word-break: break-word;
}

.audit-table th {
  background-color: #421b66;
  color: white;
}

.audit-table tr:nth-child(even) {
  background-color: #2b1e42;
}

.bot-table {
  width: 80%;
  border-collapse: collapse;
  text-align: center;
  margin: 1rem auto;
}

.bot-table th {
  background-color: #421b66;
  color: white;
  padding: 0.8rem;
  font-size: 1rem;
}

.bot-table td {
  padding: 0.6rem;
  border-bottom: 1px solid #444;
  background-color: transparent;
}

.bot-row {
  background-color: transparent;
}

.bot-action-cell {
  background-color: #1e152f;
  text-align: center;
  padding: 0.6rem;
  border: none;
}

.bot-action-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.bot-action-cell form {
  background-color: transparent !important;
  box-shadow: 0 0 6px rgba(192, 132, 245, 0.15);
  padding: 2px 4px !important; /* ✅ Tight padding */
  border-radius: 6px;
  display: flex;
  align-items: center; /* ✅ Vertically center content */
  justify-content: center;
  line-height: 1; /* ✅ Prevent vertical stretching */
}



.btn {
  padding: 0.4rem 0.8rem;
  vertical-align: middle;
  font-size: 0.85rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  color: white;
}

/* ✅ Scoped bot button styles only */
.bot-action-cell .btn-success {
  background-color: #2ecc71 !important;
}
.bot-action-cell .btn-success:hover {
  background-color: #27ae60 !important;
}

.bot-action-cell .btn-danger {
  background-color: #e74c3c !important;
}
.bot-action-cell .btn-danger:hover {
  background-color: #c0392b !important;
}

.bot-action-cell .btn-warning {
  background-color: #f39c12 !important;
}
.bot-action-cell .btn-warning:hover {
  background-color: #d68910 !important;
}


#last-updated {
  font-size: 1rem;
  color: #bbb;
  font-weight: 500;
  background-color: #1e152f;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  display: inline-block;
  margin: 1rem auto;
}
.timestamp-wrapper {
  text-align: center;
}


/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 400px;
  text-align: center;
}

.modal-content input {
  padding: 8px;
  margin-top: 10px;
  width: 80%;
}

.modal-content .btn {
  margin: 10px 5px 0;
}

.bot-action-cell button {
  margin-top: 0 !important;
  padding: 0.4rem 0.8rem !important;
  vertical-align: middle;
  font-size: 0.85rem;
}

.bot-action-cell .btn {
  min-width: 120px;
  padding: 0.4rem 0.8rem !important;
  line-height: 1 !important;
  font-size: 0.85rem;
  vertical-align: middle;
  box-sizing: border-box;
  margin: 0 !important;
}

.bot-status .status-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.offline-row {
  background-color: #f0f0f0;
  color: #999;
}



/* 🖥️ Console Box Styles */
.console-box {
  background-color: #1e1e2f;
  color: #00ff88;
  font-family: 'Courier New', Courier, monospace;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 6px;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(192, 132, 245, 0.15);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.4;
}

/* 🔁 Console Text Behavior */
#console-output {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* 🎯 Scroll on update (optional in JS) */
.console-box::after {
  content: '';
  display: block;
  height: 1px;
}

/* ✅ Colorful Tags (optional for future use) */
.console-box .success {
  color: #00ff88;
}

.console-box .error {
  color: #ff6b6b;
}

.console-box .warn {
  color: #ffae00;
}

.ghost-row {
  background-color: #2a2a2a;
  opacity: 0.75;
}
#probe-monitor-view .card.full-width {
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

#probe-monitor-view .audit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  box-sizing: border-box;
}

#probe-monitor-view .audit-table th,
#probe-monitor-view .audit-table td {
  padding: 0.75rem;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#probe-monitor-view .card.full-width > h2 {
  padding: 0.75rem;
  margin: 0;
}

#deleteModal .modal-content {
  background-color: #1e1e1e; /* Deep dark background */
  color: #f1f1f1;            /* Light text for contrast */
  border: 1px solid #444;    /* Optional subtle border */
  box-shadow: 0 0 20px rgba(0,0,0,0.6); /* Depth */
}

#deleteModal input,
#deleteModal button {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border: 1px solid #555;
}

#deleteModal input::placeholder {
  color: #aaa;
}

.modal-content {
  padding: 1.5rem;
  max-width: 500px;
  margin: auto;
}
#deleteModal .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#deleteModal input#deleteConfirmInput {
  width: 80%;
  margin-top: 10px;
  text-align: center;
}

#deleteModal .modal-footer {
  justify-content: center;
}

#updateModal .modal-content {
  background-color: #1e1e1e;
  color: #f1f1f1;
  border: 1px solid #444;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

#updateModal input,
#updateModal button {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border: 1px solid #555;
}

#updateModal input::placeholder {
  color: #aaa;
}

#updateModal .modal-content {
  padding: 1.5rem;
  max-width: 500px;
  margin: auto;
}

#updateModal .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#updateModal input#updateConfirmInput {
  width: 80%;
  margin-top: 10px;
  text-align: center;
}

#updateModal .modal-footer {
  justify-content: center;
}




/* ✅ Prevent bot table from overlapping or breaking layout */
.table-responsive {
  overflow-x: auto;
  padding-bottom: 2rem;
}

/* ✅ Lock table within container and prevent blowout */
table {
  table-layout: fixed;
  width: 100%;
  word-wrap: break-word;
}

/* ✅ Column content control and ellipsis on overflow */
table th, table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* ✅ Fix for bot actions stretching rows */
.bot-action-cell {
  width: 180px;
  vertical-align: middle;
}

.bot-action-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.bot-action-wrapper button {
  width: 100%;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ✅ Dim offline bots for quick visual scan */
.offline-row {
  opacity: 0.6;
}

/* ✅ Page-specific layout width */
.bot-control-page .card {
  max-width: 1400px;
  margin: 0 auto;
}

/* ✅ Responsive tweaks for smaller screens */
@media (max-width: 768px) {
  table th, table td {
    font-size: 0.85em;
    padding: 0.5em;
  }

  .bot-action-cell {
    width: auto;
  }

  .bot-action-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .bot-action-wrapper button {
    max-width: 120px;
    font-size: 0.85em;
    padding: 0.4em 0.6em;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
  font-family: Roboto, sans-serif;
}

.lang-switch label {
  margin-right: 0.5rem;
}




    
