body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0 0 0; /* Adjusted margin for nav */
    text-align: center; /* Center navigation links */
}

nav ul li {
    display: inline-block; /* Make list items inline */
    margin-right: 15px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #555;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #007bff;
}

nav ul li a.logout {
    background-color: #dc3545;
}
nav ul li a.logout:hover {
    background-color: #c82333;
}


h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-top: 0;
}

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

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

.actions a {
    margin-right: 8px;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
}

.actions .edit {
    background-color: #ffc107;
    color: #333;
}
.actions .edit:hover {
    background-color: #e0a800;
}

.actions .delete {
    background-color: #dc3545;
    color: white;
}
.actions .delete:hover {
    background-color: #c82333;
}

.add-button {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
}

.add-button:hover {
    background-color: #218838;
}

form div {
    margin-bottom: 15px;
}

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

form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important for width calculation */
}
form textarea {
    min-height: 100px;
    resize: vertical;
}

form input[type="file"] {
    padding: 5px; /* File input padding is often browser-dependent */
}

form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
}

.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Specific for login page if not using separate login CSS */
.login-container { margin-top: 50px; }