* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f7fb;
    color: #222;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background-color: #1e3d59;
    padding: 20px;
    color: white;
    flex-shrink: 0;
}

.sidebar h2 {
    color: white;
    margin-top: 0;
}

.sidebar nav a {
    display: block;
    padding: 10px 0;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.sidebar nav a:hover {
    color: #3498db;
}

.main {
    flex-grow: 1;
    padding: 30px;
    background-color: #f4f7fb;
    min-height: 100vh;
}

.container {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    max-width: 1800px;
    margin: 0 auto;
}

.content-center {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

form button {
    padding: 12px 20px;
    background-color: #29577a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: #1e3d59;
}

/* generic button style used outside of forms */
.btn {
    padding: 8px 14px;
    background-color: #29577a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #1e3d59;
}

footer.footer {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    margin-top: 40px;
}

.logout-link {
    margin-top: 20px;
    display: block;
    color: #ffdddd;
    font-weight: bold;
}


.alert {
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert.failed {
    background-color: #edd4d4;
    color: #dd0000;
    border-color: #e6c3c3;
}

/* Basic table styling used on management and log pages */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

th,
td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.voided {
    color: #6c757d;
    background-color: #e9ecef;
}