
body {
    font-family: Arial, sans-serif;
    background-color: #222;
    color: #aaabbc;
    display: grid;
    grid-template:
        "header header" auto
        "nav content" 1fr
        / 280px auto;
    gap: 10px;
    justify-items: stretch;
    align-items: stretch;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

header {
    color: #6a6cb5;
    display: block;
    grid-area: header;
    display: flex;
    flex-direction: row;
}
nav {
    grid-area: nav;
    background-color: #252525;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    align-self: start;
}
nav div {
    margin-bottom: 4px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #444;
}
nav div:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
nav ul {
    padding-left: 10px;
    margin-top:8px;
    margin-bottom: 2px;
}
nav li {
    list-style: none;
    margin-bottom: 8px;
}
nav li:last-of-type {
    margin-bottom: 2px;
}
nav a {
    margin-right: 15px;
    text-decoration: none;
}
nav a:hover {
    text-decoration: underline;
}
main#content {
    grid-area: content;
    background-color: #252525;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
a {
    color: #4e90d3;
    text-decoration: underline;
}
a:hover {
    color: #5da4f0;
    text-decoration: underline;
}
a:visited {
    color: #551A8B;
}

table {
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

th {
    border-bottom: 1px solid #444;
    margin-bottom: 2px;
    padding: 4px 8px;
    text-align: left;
}
table.vertical-heading th {
    border-bottom: none;
    border-right: 1px solid #444;
}

td {
    padding: 4px 8px;
}
table.vertical-heading td {
    border-right: 1px solid #444;
}
tr {
    background-color: #202020;
}
tr:nth-child(even) {
    background-color: #2f2f2f;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.form-row {
    margin-bottom: 8px;
}
.form-label {
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #888;
}
input[type="text"],
input[type="password"] {
    background-color: #161616;
    border: none;
    border-bottom: 2px solid #444;
    padding: 4px;
    color: #ccc;
    min-width: 300px;
}
input[type="text"]:focus,
input[type="password"]:focus {
    border-bottom: 2px solid #6a6cb5;
    outline: none;
}
input[type="text"]:hover,
input[type="password"]:hover {
    background-color: #1a1a22;
}

button,
.button {
    background-color: #555;
    padding: 4px 8px;
    border-radius: 4px;
    border: 2px solid #888;
    color: #ccc;
    cursor: pointer;
}
button:hover, button:focus,
.button:hover, .button:focus {
    background-color: #678;
    color: #eee;
    outline: none;
}
button:active,
.button:active {
    background-color: #456;
    border-color: #6a6cb5;
}

button.button-secondary,
.button-secondary {
    background-color: #161616;
    padding: 4px 8px;
    border-radius: 4px;
    border: 2px solid #888;
    color: #aaa;
    cursor: pointer;
}
button.button-secondary:hover, button.button-secondary:focus,
.button-secondary:hover, .button-secondary:focus {
    background-color: #678;
    color: #eee;
    outline: none;
}
button.button-secondary:active,
.button-secondary:active {
    background-color: #456;
    border-color: #6a6cb5;
}

form.compact button {
    padding: 2px 4px;
    border-width: 1px;
}

select {
    background-color: #161616;
    border: none;
    border-bottom: 2px solid #444;
    padding: 4px;
    color: #ccc;
    min-width: 300px;
}
select:focus {
    border-bottom: 2px solid #6a6cb5;
    outline: none;
}
select:hover {
    background-color: #1a1a22;
}

.flash-messages {
    border-bottom: 1px solid #444;
    color: #55bcbc;
    padding-bottom: 8px;
}
.flash-messages .error {
    color: #d9534f;
}
.flash-messages .success {
    color: #5cb85c;
}

.monospace {
    font-family: 'Courier New', Courier, monospace;
}

.muted {
    color: #888;
}

.danger {
    color: #a96a66;
}