:root {
    color-scheme: dark;

    --bg: #121212;
    --surface: #1b1b1b;
    --surface-light: #242424;

    --text: #e6e6e6;
    --text-muted: #a0a0a0;

    --border: #333;

    --accent: #4da3ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.5;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.header {
    margin-bottom: 2rem;
}

.header h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.intro {
    color: var(--text-muted);
    max-width: 70ch;
}

.controls {
    margin-bottom: 1rem;
}

#searchInput {
    width: 100%;
    padding: 0.85rem 1rem;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--surface);
    color: var(--text);

    font-size: 1rem;
}

#searchInput:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--surface-light);
}

th,
td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.footer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

a {
    color: #4da3ff;
    text-decoration: none;
}

img {
  max-width: 400px; 
  /* Calculate: 100% of the width MINUS the 20px margin */
  width: calc(100% - 20px); 
  height: auto;
  display: block;
  margin-left: 20px;
  margin-bottom: 20px;
}