/* General body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Container for centering the content */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styling */
header {
    background-color: #343a40;
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Navigation menu */
nav {
    background-color: #343a40;
    overflow: hidden;
    margin-bottom: 20px;
}

nav a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 16px;
}

nav a:hover {
    background-color: #575d63;
    color: white;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

table th {
    background-color: #343a40;
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Button styling */
button, input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
}

button:hover, input[type="submit"]:hover {
    background-color: #218838;
}

/* File upload button styling (refined to match other buttons) */
.file-upload-btn {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;  /* Same padding as other buttons */
    cursor: pointer;
    font-size: 16px;      /* Match font-size with other buttons */
    border-radius: 4px;
    border: none;
    text-align: center;
    line-height: 1.2;     /* Adjust the line-height for proper vertical alignment */
    transition: background-color 0.3s ease;
    box-sizing: border-box;  /* Ensure consistent box sizing */
    height: auto;            /* Set to auto to match button size */
    width: auto;             /* Width will adjust to the label's text */
}

.file-upload-btn:hover {
    background-color: #218838;  /* Hover color same as other buttons */
}

/* Hide the actual file input */
.file-upload-btn input[type="file"] {
    display: none;
}

/* Form input styling */
input[type="text"], input[type="password"], input[type="email"], input[type="date"], input[type="number"], select, input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form label {
    font-weight: bold;
}

/* Login form styling */
.login-form {
    background-color: #fff;
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.login-form h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.login-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #218838;
}

p.error {
    color: red;
    margin-bottom: 15px;
}

/* Pagination styling */
.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a {
    color: #007bff;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
}

.pagination strong {
    padding: 8px 16px;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    margin: 0 4px;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 20px;
    background-color: #343a40;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 20px;
}

/* Responsive menu for mobile */
@media (max-width: 768px) {
    nav a {
        float: none;
        text-align: center;
        display: block;
    }
}