html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top left, #101827 0, #020617 45%, #000 100%);
  color: #e5e7eb;
  min-height: 100vh;
}

/* ===== Shared site header (from existing app) ===== */

.site-header {
  background-color: #7ea253;
}

.site-header .header-inner {
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  min-height: 64px;
  position: relative;
  display: flex;
  align-items: center;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header .logo {
  height: 40px;
  width: auto;
  display: block;
}

.site-header .header-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.2;
}

.site-header .site-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  margin: 0 8px 2px;
}

.site-header .site-link a {
  color: #cce8c1;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.95;
}

.site-header .site-link a:hover {
  text-decoration: underline;
  opacity: 1;
}

@media (max-width: 720px) {
  .site-header .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    min-height: unset;
  }
  .site-header .header-text {
    position: static;
    transform: none;
    margin-top: 6px;
  }
  .site-header .logo { height: 34px; }
  .site-header .site-title { font-size: 1.15rem; }
  .site-header .site-link a { font-size: 0.9rem; }
}

/* ===== Main layout ===== */

.page-main {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px 28px;
  box-sizing: border-box;
  width: 100%;
}

.shell {
  width: 100%;
  max-width: 980px;
}

/* Card style */

.logs-header {
  display: flex;
  flex-direction: column;
  align-items: center;   /* center the text */
  text-align: center;    /* ensure title + subtitle center properly */
  gap: 6px;
  margin-bottom: 16px;
}

.logs-header .pill {
  margin-top: 6px;
}

.logs-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e5e7eb;
}

.logs-subtitle {
  font-size: 0.85rem;
  color: #9ca3af;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(22, 163, 74, 0.1);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
  gap: 4px;
  white-space: nowrap;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* ===== Police logs-specific styles ===== */

.logs-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  padding: 18px 18px 16px;
  backdrop-filter: blur(16px);
}

.logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 8px;
}

.log-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.75));
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.log-title a {
  color: #bbf7d0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.log-title a:hover {
  text-decoration: underline;
}

.log-meta {
  font-size: 0.78rem;
  color: #9ca3af;
}

.log-date-range {
  margin-right: 8px;
}

.log-subject {
  opacity: 0.9;
}

.rr-empty {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 4px 0 0;
}

/* Small screens tweaks for the card */
@media (max-width: 600px) {
  .page-main {
    padding: 14px 12px 20px;
  }
  .logs-card {
    padding: 14px 12px;
  }
}

.logs-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.logs-pagination .page-link {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  text-decoration: none;
  cursor: pointer;
}

.logs-pagination .page-link.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.logs-pagination .page-info {
  opacity: 0.8;
}

