/* General Styles */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
    background-color: black;
    color: white;
}

.highlight {
    background-color: orange;
    color: black;
    font-weight: bold;
}

/* Dropdown - Always centered (desktop & mobile) */
.dropdown-menu {
    font-size: 10pt;          /* Always 10pt font */
    padding: 5px;
    width: 90%;               /* Wide enough but not full screen */
    max-width: 150px;
    display: block;
    margin: 10px auto;        /* Center horizontally */
    box-sizing: border-box;
    text-align: center;
}

#dynamicLink {
    color: yellow;
    text-decoration: none; /* Remove underline */
}

#dynamicLink:hover {
    color: orange; /* Optional: Change color on hover for effect */
    text-decoration: underline; /* Add underline on hover */
}

#tableContainer {
    width: 100%;
    max-width: 1920px;
    height: calc(100vh - 250px); /* Adjusts dynamically to viewport height */
    overflow-x: auto
    overflow-y: auto; /* Enable vertical scrolling */
    box-sizing: border-box;
    border: 1px solid #ccc;
    min-height: 100vh;
}

table {
    table-layout: auto;
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    color: black;
}

table th input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    table-layout: fixed;          /* Prevent infinite table width */
    word-wrap: break-word;        /* Break long words */
    overflow-wrap: break-word;
    white-space: normal;          /* Allow wrapping */
}

th {
    background-color: #add8e6;
    font-weight: bold;
    position: sticky; /* Sticky headers */
    top: 0;
    z-index: 10;
}

/* Set the Designation column width to fit the content */
th:first-child, td:first-child {
    max-width: 400px; /* Adjust this value as needed */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds '...' for overflowed content */
}

tr:nth-child(even) {
    background-color: #e6f2ff;
}

tr.selected-row {
    background-color: yellow;
}

tr.match-row {
    background-color: lightgreen;
}

h1 {
    margin-bottom: 4px;
    background-color: white;
    padding: 0px 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.0;
    height: 15px;
    overflow: hidden;
    font-size: 2rem;
    background-color: white;
    color: black;
    border-radius: 0px;
}

.copyright-notice {
    font-size: 0.6em;
    top: 0px;
    center: 0px;
    padding: 0px;
    border-radius: 10px;
    background-color: black;
    color: white;
}

/* Image Container */
.image-container {
    background-color: white;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    border-radius: 10px;
    width: 100%;
}

.light-blue-button {
    background-color: lightblue; /* Light blue background */
    color: black; /* Black text for contrast */
    border: none; /* Remove border */
    padding: 4px 4px; /* Add padding for better appearance */
    font-size: 12px; /* Set font size */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
}

.light-blue-button:hover {
    background-color: #87CEEB; /* Slightly darker light blue on hover */
    color: white; /* White text for better contrast */
}

/* Responsive layout for mobile screens */
@media screen and (max-width: 648px) {
     #tableContainer,
    table {
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        box-sizing: border-box;
    }

    #dataTable th:nth-child(3),
    #dataTable td:nth-child(3),
    #abstractSearch {
        display: none;
    }

    th:first-child, td:first-child {
        max-width: 100px;
        white-space: normal;
        overflow-wrap: break-word;
    }

    th:nth-child(2), td:nth-child(2) {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .options-container {
         display: flex;
         flex-wrap: wrap;               /* Wrap if screen is too narrow */
         justify-content: center;       /* Center-align buttons */
         gap: 10px;                     /* Space between buttons */
         width: 100%;
    }

    .options-container button {
         font-size: 14px;
         padding: 6px 12px;
         min-width: 120px;
         box-sizing: border-box;
      }

    #dataTable th, #dataTable td {
        font-size: 14px;
        padding: 4px 6px;
    }

    /* Optional: Hide some buttons on mobile */
    #export,
    #hideAbstract,
    #pdfUploadButton {
        display: none;
    }
}

/* Optional: Center container holding dropdown */
.additional-options-container {
    display: flex;
    justify-content: center;
    width: 100%;
}
}

