/* Website Defaults */
:root {
    --bg-light: #f7f7f7;
    --text-primary: #222;
    --text-muted: #666;
    --border-subtle: #ddd;
    --notice-bg: #eaf6f2;
    --notice-border: #7bc4b9;
    --error-bg: #fce8e8;
    --error-border: #d67a7a;
    --accent-purple: #5d1a91;
}

body {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;

    margin: 0;
    min-height: 100vh;
}

/* Page layout - keep footer at the bottom */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page .body {
    flex: 1;
}

div.page div.body {
    padding: 15px;
    max-width: 800px;
    margin: 0 auto;
}

div.page div.footer {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 8px 15px;
    font-size: 12px;
    border-top: 1px solid var(--border-subtle);
}

ul.flashes {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
}

ul.flashes li {
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 13px;
    margin-bottom: 4px;
}

div.error {
    margin: 12px 0;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 13px;
}

/* Custom Styles */

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

nav h1,
nav a {
    text-decoration: none;
    color: var(--accent-purple);
}

nav a:hover {
    text-decoration: underline;
}

nav a {
    margin-right: 18px;
}

/* Form Inputs */
input {
    width: 100%;
    padding: 8px 10px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(93, 26, 145, 0.15);
}

/* Default Buttons */
button {
    padding: 8px 16px;
    border: 1px solid #0066cc;
    border-radius: 3px;
    background-color: #0066cc;
    color: white;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
}

button:active {
    background-color: var(--text-primary);
    color: #fff;
}

/* Logout Form */
.logout-form {
    margin: 0;
    padding: 0;
}

.logout-button {
    display: inline-block;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font: inherit;
    cursor: pointer;
    padding: 4px;
}

.logout-button:hover {
    color: var(--accent-purple);
}