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

/* Container for the form */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Container for the form */
.container_list {
    max-width: 90%;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

img#logo2 {
    display: block;
    margin: 20px auto 10px;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Form Styles */
.form-inline {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column; /* Stack the label on top of the input */
    align-items: flex-start; /* Align items to the start */
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px; /* Space between label and input */
    text-align: left; /* Ensure label text is aligned to the left */
}

.form-group {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"], /* Assuming you're using date inputs */
.form-group textarea {
    width: 100%; /* Make input take the full width */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensure padding doesn't affect the width */
}

/* Button Styles */
btn, button[type="submit"] {
    width: calc(100% - 20px); /* Full width minus padding for visual consistency */
    padding: 10px;
    margin-top: 10px; /* Adds some space above the button */
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Additional styles for alerts */
.alert {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    color: #d9534f;
    border: 1px solid #d9534f;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    border-color: #3c763d;
}

.links {
    text-align: center;
    margin-top: 20px;
}

.links a {
    margin: 0 10px;
    color: #007bff;
    text-decoration: none;
}

.message-bar {
    text-align: center;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    color: #fff;
    font-weight: bold;
}

.message-bar.success {
    background-color: #4CAF50; /* Green for success messages */
}

.message-bar.error {
    background-color: #f44336; /* Red for error messages */
}

/* Basic table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

/* Alternating row background colors */
tr:nth-child(even) {background-color: #f9f9f9;}
tr:nth-child(odd) {background-color: #ffffff;}

/* Column width specifications */
th:nth-child(1), td:nth-child(1) { width: 5%; } /* ID */
th:nth-child(2), td:nth-child(2) { width: 10%; } /* Username */
th:nth-child(3), td:nth-child(3) { width: 15%; } /* Full Name */
th:nth-child(4), td:nth-child(4) { width: 15%; } /* Email */
th:nth-child(5), td:nth-child(5) { width: 10%; } /* Date of Birth */
th:nth-child(6), td:nth-child(6) { width: 15%; } /* Position */
th:nth-child(7), td:nth-child(7) { width: 10%; } /* Start Date */
th:nth-child(8), td:nth-child(8) { width: 20%; } /* Edit Button */

/* Hover effect for rows */
tr:hover {
    background-color: #e8f4f8;
}

/* Logo Container Styles */
.logo-container {
    background-color: white; /* White background for the logo */
    text-align: center;
    padding: 20px 0; /* Adjust as needed */
    width: 100%; /* Ensure the div takes full width */
}

#logo {
    height: auto; /* Maintain aspect ratio */
    max-height: 100%; /* Ensure logo takes full height of its container */
    width: auto; /* Adjust width based on the logo's aspect ratio */
}

/* Navbar Styles */
.navbar {
    text-align: center;
    background-color: #333; /* Dark background for the navbar */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a, .role, .navbar .btn {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: inline-block; /* Align links in a row */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
}

.navbar a:hover, .navbar .btn:hover {
    background-color: #555;
}

/* Logout Button Styles */
.btn {
    background-color: #f44336; /* Red background for logout */
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #d73833;
}

       .container {
            max-width: 800px;
            margin: auto;
            padding: 20px;
        }

        .card {
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
            transition: 0.3s;
            border-radius: 5px;
            padding: 15px;
            margin-bottom: 20px;
            background-color: #f9f9f9;
        }

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

        .card input[type=text],
        .card input[type=password],
        .card input[type=email],
        .card input[type=date],
        .card input[type=checkbox],
        .card textarea {
            width: 100%;
            padding: 8px;
            margin-bottom: 10px;
            border-radius: 4px;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }

        .card input[type=checkbox] {
            width: auto;
        }

        button[type=submit] {
            padding: 10px;
            border: none;
            border-radius: 5px;
            background-color: #007bff;
            color: white;
            cursor: pointer;
        }

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