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

:root {
    --bg: #fafafa;
    --fg: #1a1a1a;
    --muted: #666;
    --border: #ddd;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --surface: #fff;
    --radius: 6px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
}

/* Nav */
nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .brand {
    font-weight: 700;
    font-size: 1.1rem;
}

nav form button {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.85rem;
}

nav form button:hover {
    border-color: var(--fg);
    color: var(--fg);
}

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

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 0.3rem;
}

/* File table */
.file-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.file-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.file-table a {
    color: var(--accent);
    text-decoration: none;
}

.file-table a:hover {
    text-decoration: underline;
}

.file-table .size,
.file-table .date {
    color: var(--muted);
    font-size: 0.9rem;
}

.file-table .icon {
    margin-right: 0.4rem;
}

/* Login */
.login-card {
    max-width: 380px;
    margin: 6rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.login-card h1 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.login-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--muted);
}

.login-card input[type="password"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.login-card input[type="password"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.login-card button {
    width: 100%;
    padding: 0.55rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.login-card button:hover {
    background: var(--accent-hover);
}

.login-card .error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Empty state */
.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}
