body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* Main Container - Wider for Desktop */
.container {
    max-width: 1200px; /* Increased width for desktop */
    width: 95%;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    text-align: left;
}

input, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    height: 120px;
}

/* Password Field */
.password-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.password-wrapper input {
    flex-grow: 1;
    border: none;
    padding: 12px;
    font-size: 16px;
}

.password-wrapper button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    font-size: 18px;
    color: #666;
}

.password-wrapper button:hover {
    color: #000;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #222;
    color: white;
}

/* Icons */
.eye-icon, .edit-btn, .delete-btn {
    cursor: pointer;
    padding: 5px;
    border: none;
    background: none;
}

.edit-btn {
    color: #007bff;
}

.delete-btn {
    color: #dc3545;
}

.eye-icon:hover {
    color: #333;
}

/* Buttons */
.button-container {
    text-align: right;
    margin-bottom: 10px;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

.button:hover {
    background-color: #0056b3;
}

.back-button {
    display: block;
    margin-top: 15px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
}

.back-button:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination a {
    padding: 10px 15px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a:hover {
    background: #007bff;
}

.pagination a.active {
    background: #007bff;
}

/* Responsive Design */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 1200px; /* Wider for large desktops */
    }
    
    table {
        font-size: 18px;
    }
}

/* Overlay Styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.notes-icon {
    cursor: pointer;
    font-size: 18px;
    color: #007bff;
}

.notes-icon:hover {
    color: #0056b3;
}

.admin-badge {
    background-color: green;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.user-badge {
    background-color: gray;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.toggle-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
}

.toggle-btn:hover {
    background-color: #0056b3;
}

.logout-container {
    text-align: right;
    margin-bottom: 15px;
}

.logout-button {
    background-color: #dc3545;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.logout-button:hover {
    background-color: #c82333;
}

/* Search Bar Styling */
.search-container {
    width: 100%;
    max-width: 500px; /* Prevents the search bar from expanding beyond container */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container form {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-container input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

.search-container button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #0056b3;
}

/* Responsive Fix for Mobile */
@media screen and (max-width: 768px) {
    .search-container {
        max-width: 100%; /* Allow search bar to be full width */
    }

    .search-container form {
        flex-direction: column;
        gap: 10px;
    }

    .search-container input {
        width: 100%;
    }

    .search-container button {
        width: 100%;
    }
	
#admin-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

