:root {
    --bg: #0f172a;
    --panel: #1e293b;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    padding: 2rem;
    display: flex;
    justify-content: center;
}

main {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

h1 { font-size: 1.75rem; color: var(--accent); }
h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.flex-group {
    display: flex;
    gap: 0.5rem;
}

input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
input:focus { border-color: var(--accent); }

button {
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover { background: var(--accent-hover); }
table {
    width: 100%;
    border-collapse: collapse;
    /* This prevents the table from expanding beyond its container */
    table-layout: fixed;
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    /* Prevents content from pushing the cell width */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

td:hover {
    overflow: visible;
    white-space: normal;
    word-break: break-all;
    background-color: #f9f9f9;
}