/* Import themed font */
@import url('https://fonts.googleapis.com/css2?family=Passion+One&display=swap');

/* Variables */
:root {
  --color-navbar: #2c3e50;
  --color-navbar-link: #ffcc99;
  --color-navbar-link-hover: #ffffff;
  --color-page: #1e1e1e;
  --color-textbox: #f4f4f4;
  --color-accent: #e74c3c;
  --color-muted: #888;
  --font-themed: 'Passion One', sans-serif;
}

/* Base */
* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--color-page);
  color: var(--color-textbox);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

/* Header & Footer */
.framebar {
  background-color: var(--color-navbar);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
.framebar .logo { max-height: 50px; }
.framebar a {
  color: var(--color-navbar-link);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
}
.framebar a:hover {
  color: var(--color-navbar-link-hover);
}
.framebar .sep { color: #5a7a8a; margin: 0 8px; }

/* Footer centered */
footer.framebar {
  justify-content: center;
}

/* Content */
.main-body {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

.content {
  background-color: white;
  color: var(--color-page);
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
}

.content h1, .content h2 {
  margin-top: 0;
  margin-bottom: 0.3em;
  font-family: var(--font-themed);
  font-weight: 400;
}
.content h1 { font-size: 2em; }
.content h2 { font-size: 1.6em; }

/* Mobile */
@media (max-width: 640px) {
  .main-body { padding: 10px; }
  .content { padding: 20px; }
  .framebar { padding: 10px 15px; }
}

/* === Expose App === */

.subnav {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.subnav a { margin-right: 15px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.85em;
  text-transform: capitalize;
}

.empty-state {
  color: var(--color-muted);
  font-style: italic;
}

.count { color: var(--color-muted); font-size: 0.9em; }

.link-small { font-size: 0.85em; color: #666; }
.link-danger { color: var(--color-accent); }

/* Incident List */
.incident-list { margin: 20px 0; }

.incident-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 12px;
}
.incident-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.incident-id { color: var(--color-muted); font-size: 0.9em; }
.incident-card h3 { margin: 0 0 8px; font-size: 1.1em; }
.incident-card p { margin: 0; color: #555; }
.incident-card footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.9em;
}
.incident-card footer a { }

/* Incident Detail */
.incident-detail header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.incident-detail .description {
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Offender List */
.offender-list {
  list-style: none;
  padding: 0;
}
.offender-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}
.offender-list li:last-child { border-bottom: none; }

/* Forms */
.form { max-width: 500px; }
.form-row { margin-bottom: 15px; }
.form-row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.form-row textarea { resize: vertical; min-height: 80px; }

button {
  padding: 10px 24px;
  background: var(--color-navbar);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}
button:hover { background: #1a252f; }

.btn-danger {
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-accent);
  color: white;
  border-radius: 4px;
  text-decoration: none;
}
.btn-danger:hover { background: #c0392b; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.pagination span { color: var(--color-muted); }
