:root {
    --glass-bg: rgba(0, 0, 0, 0.6);
    --card-bg: rgba(255, 255, 255, 0.04);
    --border-soft: rgba(255, 255, 255, 0.12);
    --footer-fg: #f2f2f2; /* high-contrast text for black footer */
  }
  
  /* Layout padding to avoid overlap with fixed header/footer + notice bar */
  .content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 6px;
    padding-right: 6px;
  }

  body {
    padding-top: 108px;     /* navbar + notification + pagination rows */
    padding-bottom: 72px;   /* sticky footer height + buffer */
    background:
      radial-gradient(60% 70% at 10% 10%, rgba(255,255,255,0.06), rgba(0,0,0,0) 60%),
      radial-gradient(60% 70% at 90% 90%, rgba(255,255,255,0.05), rgba(0,0,0,0) 60%),
      #000;
    color: #eee;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    overflow: hidden !important;
  }
  
  /* Sticky notice bar */
  .notice-sticky {
    position: sticky;
    top: 56px; /* under fixed navbar */
    z-index: 1031;
    padding: 0 .75rem;
  }
  .notice-sticky .alert {
    margin: .5rem auto 0;
    max-width: 1400px;
  }
  
  /* Cards */
  .soft-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  }
  
  /* Table */
  .table-dark {
    --bs-table-bg: rgba(255,255,255,0.02);
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    margin-top:26px;
  }
  .table-gradient th {
    background: rgba(0,0,0,0.75); /* glassy black */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.25);
  }
  
  /* URL truncation cell */
  .url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Notes indicator cell */
  .notes-flag {
    width: 56px;
    text-align: center;
  }
  
  /* Modal glass */
  .bg-glass-dark {
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-soft);
    color: #eee;
  }
  
  /* JSON preview (used in modal) */
  .json-preview {
    margin: 0;
    max-height: 60vh;
    overflow: auto;
    background: rgba(0,0,0,0.5);
    border-radius: .75rem;
    padding: 1rem;
    border: 1px solid var(--border-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.4;
  }
  
  /* Footer: black with high-contrast labels and controls */
  .footer {
    background: #000;
    border-top: 1px solid var(--border-soft);
    z-index: 1030; /* above cards */
  }
  .footer-contrast {
    color: var(--footer-fg) !important;
  }
  .footer-select {
    color: var(--footer-fg);
    background-color: #111;
    border-color: rgba(255,255,255,0.2);
  }
  .footer-select:focus {
    color: var(--footer-fg);
    background-color: #111;
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 0 0 .2rem rgba(255,255,255,0.08);
  }
  
  /* Header buttons sizing */
  .navbar .btn {
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
  }
  .navbar .btn i {
    margin-right: 0.35rem;
  }
  
  /* Pagination in black footer: high contrast */
  .pagination .page-link {
    background: #111;
    border-color: rgba(255,255,255,0.2);
    color: #fafafa;
    min-width: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pagination .page-link:hover {
    background: #1a1a1a;
    color: #ffffff;
  }
  .pagination .active .page-link {
    background: #2b59ff;
    border-color: #2b59ff;
    color: #fff;
  }
  .pagination .disabled .page-link {
    color: rgba(255,255,255,0.45);
    background: #0d0d0d;
    border-color: rgba(255,255,255,0.2);
  }
  .pagination .page-item {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
  }

.text-contrast {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.navbar.bg-black {
  background: #000 !important;
}

.navbar .navbar-brand,
.navbar .btn,
.navbar .dropdown-toggle,
.navbar .dropdown-menu {
  color: #fff !important;
}

.navbar .btn-outline-light {
  border-color: #fff;
  color: #fff;
}

.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus {
  background: #fff;
  color: #000;
}
  
/* Glassmorphism for cards and main containers */
.soft-card, .modal-content, .footer, .navbar.bg-black, .notice-sticky {
  background: var(--glass-bg, rgba(0,0,0,0.6));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
}
  
/* Header toast (subtle, glassy) */
#toastHost.toast {
  background: rgba(30, 30, 30, 0.85) !important;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.18);
  min-width: 220px;
  max-width: 420px;
  font-size: 1rem;
  opacity: 0.97;
}
.toast-success {
  background: linear-gradient(90deg, #28a745 80%, #218838 100%) !important;
  color: #fff !important;
}
.toast-info {
  background: linear-gradient(90deg, #007bff 80%, #0056b3 100%) !important;
  color: #fff !important;
}
.toast-danger {
  background: linear-gradient(90deg, #dc3545 80%, #a71d2a 100%) !important;
  color: #fff !important;
}
.toast-warning {
  background: linear-gradient(90deg, #ffc107 80%, #e0a800 100%) !important;
  color: #212529 !important;
}
#toastHost .toast-body {
  color: inherit !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}
  
/* Notification and pagination rows below header */
.navbar .row.bg-dark {
  background: #181a1b !important;
  border-bottom: 1px solid var(--border-soft);
  min-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
}

#headerAlert {
  min-width: 280px;
  font-size: 0.95rem;
  padding: 0.25rem 1rem;
  background: rgba(0,123,255,0.08) !important;
  border: 1px solid #17a2b8 !important;
  color: #17a2b8 !important;
  width: 100%;
  justify-content: center;
}

#headerAlert i {
  color: #17a2b8;
}

#pagination {
  margin-left: auto;
  margin-right: 0.5rem;
}

#pageStats {
  min-width: 80px;
}

/* Remove sticky-subheader and toast styles */
.sticky-subheader, #toastHost, .toast { display: none !important; }
  
/* Save status indicator dot */
.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  background: #28a745;
  border: 1px solid #222;
  vertical-align: middle;
}
.status-dot-green { background: #28a745; animation: pulse-green 1.2s infinite; }
.status-dot-yellow { background: #ffc107; animation: pulse-amber 1.2s infinite; }
.status-dot-red { background: #dc3545; }
.status-dot-gray { background: #888; }

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(40,167,69,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(40,167,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); }
}
@keyframes pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(255,193,7,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255,193,7,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,193,7,0); }
}
  
#noticeBar, .alert {
  border-radius: 1rem;
  border-width: 2px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  color: #fff !important;
  font-weight: 500;
}
#noticeBar.alert-success, .alert-success {
  border-color: #28a745 !important;
  color: #28a745 !important;
  background: rgba(40,167,69,0.12) !important;
}
#noticeBar.alert-info, .alert-info {
  border-color: #17a2b8 !important;
  color: #17a2b8 !important;
  background: rgba(23,162,184,0.12) !important;
}
#noticeBar.alert-warning, .alert-warning {
  border-color: #ffc107 !important;
  color: #ffc107 !important;
  background: rgba(255,193,7,0.12) !important;
}
#noticeBar.alert-danger, .alert-danger {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
  background: rgba(220,53,69,0.12) !important;
}

/* Empty state panel glass style */
#emptyState .glass-panel {
  background: rgba(30, 30, 40, 0.55) !important;
  border-radius: 1rem;
  border: 1px solid var(--border-soft, rgba(255,255,255,0.12));
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  padding: 2rem 1.5rem;
}

.glass-panel, #noticeBar, .alert, .soft-card, .modal-content, .bg-glass {
  color: #fff !important;
}

#emptyState .glass-panel {
  color: #fff !important;
}

/* Hide scrollbars on page and table view unless content truly overflows */
body {
  overflow: hidden !important;
}

.table-responsive {
  overflow: hidden !important;
}

/* Allow scrollbars in modals and JSON preview */
.modal-content,
.bg-glass-dark,
.json-preview {
  overflow-y: auto !important;
  scrollbar-width: auto;
  -ms-overflow-style: auto;
}
.modal-content::-webkit-scrollbar,
.bg-glass-dark::-webkit-scrollbar,
.json-preview::-webkit-scrollbar {
  width: 8px;
  background: #222;
  display: initial;
}
  
/* Hamburger menu button call-out style to match '+ Add Entry' */
#btnMenu.btn-info {
  background: linear-gradient(90deg, #2b59ff 80%, #2186d4 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px 0 rgba(43,89,255,0.18);
  min-width: 120px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
#btnMenu.btn-info:focus, #btnMenu.btn-info:hover {
  background: #2186d4 !important;
  color: #fff !important;
}
#btnMenu .bi-list {
  font-size: 1.25rem;
  margin: 0;
}
  
/* Remove main.container-fluid padding override */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 6px;
  padding-right: 6px;
}

.navbar .container-fluid {
  padding-left: 12px !important;
  padding-right: 12px !important;
}
  
/* Shared pagination bar style for both header and footer */
.pagination-bar {
  background: #000 !important;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
  z-index: 1030;
}

/* Ensure both paginations have the same margin and alignment */
#pagination, #paginationFooter {
  margin-left: 0;
  margin-right: 0.5rem;
}

#pageStats, #pageStatsFooter {
  min-width: 80px;
  color: var(--footer-fg) !important;
  margin-left: 1rem;
  white-space: nowrap;
}
  