/* Mnemosyne Cockpit -- minimal stylesheet */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* Navigation */
nav {
    background: #1e293b;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    height: 48px;
}

nav .brand {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-right: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
}

nav ul li a:hover {
    color: #e2e8f0;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

thead {
    background: #f1f5f9;
}

th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

tr.flagged {
    background: #fef9c3;
}

.content-cell {
    max-width: 400px;
    word-break: break-word;
}

/* Filter form */
.filter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-form input[type="text"],
.filter-form input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    flex: 1;
    min-width: 140px;
}

/* Buttons */
button[type="submit"],
.filter-form button {
    padding: 6px 14px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

button[type="submit"]:hover,
.filter-form button:hover {
    background: #334155;
}

.filter-form a {
    padding: 6px 14px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    align-self: center;
}

/* Error message */
.error {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 0.75rem;
}

/* Login page */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #1e293b;
}

.login-box {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.login-box h1 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.login-box label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-box input {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
}

.login-box input:focus {
    outline: 2px solid #3b82f6;
    border-color: transparent;
}

.login-box button {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 9px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.login-box button:hover {
    background: #334155;
}
