/* ========================================================= */
/* Base */

:root {
    --primary: #0066aa;
    --primary-dark: #003388;
    --text-muted: #999;
    --bg-light: #f5f7fa;
    --border: #ddd;
}

body {
    background-color: var(--bg-light);
    font-size: 14px;
    margin: 0;
    padding-bottom: 70px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

h2, h3 {
    color: var(--text-muted);
}

/* ========================================================= */
/* Layout containers */

#content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hcontainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1em;
}

/* ========================================================= */
/* Navbar */

.navbar {
    min-height: 40px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    font-size: 18px;
}

.navbar-brand img {
    width: 70px;
}

/* ========================================================= */
/* Menu */

#menu {
    display: flex;
    background-color: var(--primary);
    width: 100%;
    font-size: 18px;
}

#menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu ul li {
    padding: 0 20px;
    line-height: 2.5em;
}

#menu ul li a {
    color: #fff;
    text-decoration: none;
}

#menu ul li:hover {
    background-color: var(--primary-dark);
}

/* ========================================================= */
/* Forms */

input,
button {
    font: inherit;
}

input[type="submit"],
button[type="submit"] {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .2s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

/* ========================================================= */
/* Login */

.login-form {
    width: 100%;
    max-width: 380px;
    padding: 30px;
    margin-top: 60px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    text-align: center;
}

.login-form h2 {
    margin-bottom: 25px;
}

.login-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,102,170,.15);
}

/* ========================================================= */
/* Tables */

table {
    border-collapse: collapse;
}

th, td {
    border: 1px solid #888;
    padding: 4px 8px;
}

tfoot {
    display: table-header-group;
}

tfoot th,
tfoot input {
    background-color: #ccc;
    text-align: center;
    border: none;
}
