body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-style: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 80%;
    max-width: 1200px;
    margin: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

h2 {
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.button-group a,
.button-group form,
.button-group .forms {
    margin: 5px;
}

.button-group a,
.button-group button {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    line-height: normal; /* Ensure the same line-height */
}

.logout-link {
    background-color: #d9534f;
}

.logout-link:hover {
    background-color: #c9302c;
}

.back-link {
    background-color: #5bc0de;
}

.back-link:hover {
    background-color: #31b0d5;
}

.public-link {
    background-color: #f0ad4e;
}

.public-link:hover {
    background-color: #ec971f;
}

.button-link {
    background-color: #337ab7;
}

.button-link:hover {
    background-color: #286090;
}

.forms {
    display: flex;
    flex-direction: column;
}

form {
    display: flex;
    flex-direction: column;
}

.search-form {
    margin-bottom: 20px;
}

input[type="text"] {
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    width: auto;
}

input[type="text"]:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
    display: inline-block;
    line-height: normal; /* Ensure the same line-height */
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-style: normal;
}

button:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 0;
    transform: translate(-50%, -50%) scale(0);
}

button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

button.button-btn {
    background-color: #337ab7;
}

button.button-btn:hover {
    background-color: #286090;
}

button.logout-btn {
    background-color: #d9534f;
}

button.logout-btn:hover {
    background-color: #c9302c;
}

button.import-btn {
    background-color: #5cb85c;
}

button.import-btn:hover {
    background-color: #4cae4c;
}

button.export-btn {
    background-color: #f0ad4e;
}

button.export-btn:hover {
    background-color: #ec971f;
}

button.update-btn {
    background-color: #337ab7;
}

button.update-btn:hover {
    background-color: #286090;
}

button.approve-btn {
    background-color: #5bc0de;
}

button.approve-btn:hover {
    background-color: #31b0d5;
}

button.reject-btn {
    background-color: #d9534f;
}

button.reject-btn:hover {
    background-color: #c9302c;
}

button.backup-btn {
    background-color: #f0ad4e;
}

button.backup-btn:hover {
    background-color: #ec971f;
}

button.restore-btn {
    background-color: #337ab7;
}

button.restore-btn:hover {
    background-color: #286090;
}

.table-container {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: auto;
}

.table-container::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.6);
}

table {
    width: 100%; /* adjust width to account for scrollbar */
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block;
    overflow: auto;
}

table, th, td {
    border: none;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    max-width: 800px; /* set a max-width for table cells */
    word-wrap: break-word;
}

table.publictb th,
table.publictb td {
    max-width: 440px; /* set a max-width for table cells */
}

th {
    width: 100%;
    background-color: #f5f5f5;
    text-transform: uppercase;
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-style: normal;
    position: sticky;
    top: 0;
    z-index: 1;
}

tr {
    width: 100%; /* adjust width to account for scrollbar */
}

tr:hover {
    background-color: #f1f1f1;
}

table {
    width: 100%;
}

.messages {
    list-style: none;
    padding: 0;
    color: red;
    animation: fadein 0.5s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    min-width: 20%;
    max-width: 80%;
    border-radius: 10px;
    text-align: center;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.close-btn,
.close-edit-btn,
.close-propose-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.close-btn:hover,
.close-btn:focus,
.close-edit-btn:hover,
.close-edit-btn:focus,
.close-propose-btn:hover,
.close-propose-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal button {
    margin-top: 10px;
}

.modal #confirmBtn {
    background-color: #5cb85c;
}

.modal #confirmBtn:hover {
    background-color: #4cae4c;
}

.modal #cancelBtn {
    background-color: #f0ad4e;
}

.modal #cancelBtn:hover {
    background-color: #ec971f;
}

textarea {
    width: 95%;
    min-height: 100px;
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
