* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1f2937;
    color: white;
    padding: 20px 0 0 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: auto;
    padding-bottom: 10px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 90px;
    margin-right: 20px;
    background-color: #111827;
    padding: 15px;
    border-radius: 50%;
}

.header-text h1 {
    margin: 0;
    font-size: 2.2em;
    line-height: 1.2;
}

.header-text p {
    margin: 5px 0 0;
    font-size: 1em;
    color: #d1d5db;
}

nav, .admin-menu, .user-menu {
    background: #374151;
    padding: 10px;
    text-align: center;
}

nav ul, .admin-menu ul, .user-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
}

nav li, .admin-menu li, .user-menu li {
    margin: 0 15px;
}

nav a, .admin-menu a, .user-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover, .admin-menu a:hover, .user-menu a:hover {
    text-decoration: underline;
}

.admin-menu a.active, .user-menu a.active {
    background: #111827;
    padding: 5px 10px;
    border-radius: 4px;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    background: white;
}

h2, h3 {
    margin-bottom: 15px;
    color: #333;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #1f2937;
    color: #fff;
    width: 100%;
}

form {
    margin-bottom: 20px;
}

form label {
    display: block;
    margin: 10px 0 5px;
}

form input, form select, form textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 10px 20px;
    background: #374151;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background: #4b5563;
}

table {
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

table th {
    background: #374151;
    color: #fff;
    font-weight: bold;
    visibility: visible;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

table a {
    color: #374151;
    text-decoration: none;
}

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

.error {
    color: #e74c3c;
    margin: 10px 0;
    display: block;
    font-weight: bold;
}

/* Form spacing */
form {
    margin: 0;
}

label, input, select, textarea {
    display: block;
    margin-bottom: 3px;
    width: 100%;
    box-sizing: border-box;
}

label {
    font-weight: bold;
}

input, select, textarea {
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 6px;
    font-size: 14px;
    background-color: #374151;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #4b5563;
}

form a {
    display: inline-block;
    margin-top: 5px;
    color: #333;
    text-decoration: none;
}

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