body {
  background: #1E1E1E;
  color: #CCCCCC;
  font-family: 'Segoe UI', 'Arial', sans-serif;
}
.main-container {
  max-width: 1200px;
  margin: 40px auto;
  background: #23272b;
  border-radius: 10px;
  box-shadow: 0 4px 24px #0008;
  overflow: hidden;
}
.header-gradient {
  background: linear-gradient(180deg, #2D2D30 0%, #1E1E1E 100%);
  padding: 20px 15px 10px 15px;
  text-align: center;
}
.header-gradient h2 {
  color: #00BFFF;
  font-weight: bold;
  margin-bottom: 5px;
}
.header-gradient .subtitle {
  color: #AAAAAA;
  font-size: 13px;
}
.content-area {
  padding: 30px;
}
.table {
  color: #CCCCCC;
  background: #2B2F33;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px #0004;
}
.table thead {
  background: #1F2937;
}
.table thead th {
  color: #00BFFF;
  font-weight: 600;
  border: none;
  padding: 15px 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.table tbody tr {
  border-bottom: 1px solid #374151;
  transition: background 0.2s;
}
.table tbody tr:hover {
  background: #374151;
}
.table tbody tr:last-child {
  border-bottom: none;
}
.table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}
.table thead tr th:last-child {
  border-top-right-radius: 8px;
}
.table tbody td {
  border: none;
  padding: 12px;
  vertical-align: middle;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
}
.hostname {
  color: #10B981;
  font-weight: bold;
  font-family: 'Segoe UI', sans-serif;
}
.cpu-id, .uuid, .mac, .ssd {
  color: #94A3B8;
  word-break: break-all;
}
.date {
  color: #FDE047;
  font-weight: 500;
  font-family: 'Segoe UI', sans-serif;
}
.stats-card {
  background: #1F2937;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 15px;
  border-left: 4px solid #00BFFF;
}
.stats-number {
  font-size: 1.4rem;
  font-weight: bold;
  color: #00BFFF;
  line-height: 1;
  margin-bottom: 2px;
}
.stats-label {
  color: #9CA3AF;
  font-size: 11px;
  margin-top: 0;
  line-height: 1.2;
}
.btn-back {
  background: #374151;
  color: #CCCCCC;
  border: none;
  padding: 4px 8px;
  margin: 0;
  border-radius: 4px;
  font-weight: 400;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
  min-height: auto;
  line-height: 1;
}
.btn-back:hover {
  background: #4B5563;
  color: #CCCCCC;
}
.refresh-btn {
  background: #059669;
  color: white;
  border: none;
  padding: 4px 8px;
  margin: 0;
  border-radius: 4px;
  font-weight: 400;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
  min-height: auto;
  line-height: 1;
}
.refresh-btn:hover {
  background: #047857;
}
.logout-btn {
  background: #059669;
  color: white;
  border: none;
  padding: 4px 8px;
  margin: 0 0 0 8px;
  border-radius: 4px;
  font-weight: 400;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
  min-height: auto;
  line-height: 1;
}
.logout-btn:hover {
  background: #047857;
}
.btn-delete {
  background: #DC2626;
  color: white;
  border: none;
  padding: 4px 8px;
  margin-left: 4px;
  border-radius: 3px;
  font-weight: 400;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: background 0.2s;
  min-height: auto;
  line-height: 1;
  cursor: pointer;
}
.btn-delete:hover {
  background: #B91C1C;
}
.btn-copy {
  background: #374151;
  color: white;
  border: none;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 3px;
  font-weight: 400;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: background 0.2s;
  min-height: auto;
  line-height: 1;
  cursor: pointer;
}
.btn-copy:hover {
  background: #4B5563;
}
.btn-add {
  background: #059669;
  color: white;
  border: none;
  padding: 2px 6px;
  margin-right: 6px;
  border-radius: 3px;
  font-weight: 400;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: background 0.2s;
  min-height: auto;
  line-height: 1;
  cursor: pointer;
}
.btn-add:hover {
  background: #047857;
}
.toggle-container {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}
.toggle-switch {
  display: none;
}
.toggle-label {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background-color: #DC2626;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0;
}
.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}
.toggle-switch:checked + .toggle-label {
  background-color: #059669;
}
.toggle-switch:checked + .toggle-label .toggle-slider {
  transform: translateX(16px);
}
.toggle-label:hover {
  opacity: 0.8;
}
.hostname-container {
  display: flex;
  align-items: center;
  gap: 4px;
}
.actions-cell {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1px;
  padding-right: 10px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6B7280;
}
.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #374151;
}
/* Modal Dark Theme - More Compact and Less Colorful */
.modal-content {
  background: #1E1E1E !important;
  color: #CCCCCC !important;
  border: 1px solid #2D2D30;
  border-radius: 6px;
}
.modal-header {
  border-bottom: 1px solid #2D2D30;
  background: #181818;
  padding: 12px 16px;
}
.modal-body {
  padding: 16px;
}
.modal-footer {
  border-top: 1px solid #2D2D30;
  background: #181818;
  padding: 10px 16px;
}
.modal-title {
  color: #E5E5E5;
  font-weight: 500;
  font-size: 16px;
}
.modal-dialog {
  max-width: 400px;
}
.form-control, .form-control:focus {
  background: #2D2D30 !important;
  color: #CCCCCC !important;
  border-color: #3F3F46 !important;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 4px;
}
.form-control:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
  border-color: #555 !important;
}
.form-label {
  color: #AAAAAA !important;
  font-weight: 400;
  font-size: 13px;
  margin-bottom: 6px;
}
.alert-danger {
  background: #2A1F1F !important;
  color: #CCCCCC !important;
  border: 1px solid #3D2626 !important;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 4px;
}
/* Blurs/disables the page content behind the mandatory login modal */
.content-locked {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.btn-danger {
  background: #8B1538;
  border-color: #8B1538;
  padding: 6px 14px;
  font-size: 13px;
}
.btn-danger:hover {
  background: #A01B42;
  border-color: #A01B42;
}
.btn-secondary {
  background: #3F3F46;
  border-color: #3F3F46;
  color: #CCCCCC;
  padding: 6px 14px;
  font-size: 13px;
}
.btn-secondary:hover {
  background: #4B5563;
  border-color: #4B5563;
  color: #CCCCCC;
}
.btn-success {
  background: #059669;
  border-color: #059669;
  color: white;
  padding: 6px 14px;
  font-size: 13px;
}
.btn-success:hover {
  background: #047857;
  border-color: #047857;
  color: white;
}
.text-warning {
  color: #D4A574 !important;
}
.text-muted {
  color: #888 !important;
  font-size: 12px;
}
input::placeholder {
  color: #777 !important;
}
.modal-warning {
  color: #BBBBBB;
  font-size: 14px;
  margin-bottom: 12px;
}
.modal-hostname {
  background: #2A1F1F;
  border: 1px solid #3D2626;
  padding: 8px 12px;
  border-radius: 4px;
  color: #E5E5E5;
  font-family: 'Consolas', monospace;
  font-size: 13px;
  margin-bottom: 12px;
}
.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.6;
}
.btn-close-white:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .table-responsive {
    font-size: 11px;
  }
  .main-container {
    margin: 20px;
    border-radius: 8px;
  }
  .content-area {
    padding: 20px;
  }
}