/* admin-overrides.css
   Overrides and small tweaks for the admin UI.
   Load after admin.css to take effect.
*/

.admin-topbar {
  /* Make topbar sticky and slightly more prominent */
  position: sticky;
  top: 0;
  z-index: 1100;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

/* Stronger focus styles for accessibility */
.admin-topbar .admin-menu-toggle:focus,
.btn:focus,
.admin-table a:focus {
  outline: 3px solid rgba(10,111,181,0.18);
  outline-offset: 2px;
}

/* Improve table row hover and zebra rows */
.admin-table tbody tr:hover { background: #fbfdff; }
.admin-table tbody tr:nth-child(odd) { background: #fff; }
.admin-table tbody tr:nth-child(even) { background: #fbfcfd; }

/* Smaller compact mode for dense lists */
.admin-table.compact th,
.admin-table.compact td {
  padding: 6px 8px;
  font-size: 0.95rem;
}

/* Make modals centered on small screens and full width */
@media (max-width:720px) {
  .modal-panel {
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px;
    border-radius: 10px;
  }
}

/* Slightly different button styles for confirm/danger */
.btn-danger {
  background: linear-gradient(180deg,#fff,#fff);
  color: #9a1b0a;
  border-color: #f3c6c2;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.02);
}