/* Global styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: #0077cc;
}

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

.sidebar {
    width: 220px;
    background-color: #2c3e50;
    padding: 20px;
    color: white;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 15px;
}

.sidebar a {
    color: white;
    font-weight: bold;
}

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

.main-content {
    flex-grow: 1;
    padding: 30px;
    background-color: #fff;
}

/* Form styling */
form div {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[readonly] {
    background-color: #eee;
    color: #555;
}

/* Buttons */
button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
    background-color: #0077cc;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #005fa3;
}

.button-group {
    margin-top: 20px;
}

/* Flash messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-messages .error {
    color: #b00020;
    font-weight: bold;
}

.flash-messages .success {
    color: #2e7d32;
    font-weight: bold;
}

/* Password match message */
#password-match-message.error {
    color: #b00020;
    font-size: 14px;
    margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        text-align: center;
    }

    .main-content {
        padding: 20px;
    }
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
}

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

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

tr:nth-child(even) {
    background-color: #fafafa;
}

.unauthorized {
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.unauthorized h2 {
    color: #c00;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    white-space: nowrap;
}

.filter-group button,
.filter-group a.btn {
    height: 38px; /* Match form control height */
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}