#uploadForm  *, #toggleSearchForm{
    margin-bottom: 5px;
}

table {
    border: 1px solid black;
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 5px;
    text-align: left;
    border: 1px solid black;
    background-color: white;
}

th {
    background-color: lightgray;
}

th[data-column] {
    cursor: pointer;
}

footer {
    position: sticky;
}

#fileDetailsModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

#fileDetailsModal > div {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    overflow-y: auto;
}

#closeModal {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

#searchForm .form-group {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

#searchForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#searchForm .form-group label {
    min-width: 100px;
}

#loadMore {
    margin-top: 10px;
}

/* SPA transition helpers: fade out/in the main app container to avoid white flash on route changes */
#app {
    transition: opacity 180ms ease-in-out, transform 180ms ease-in-out;
    opacity: 1;
}
.app-transitioning {
    opacity: 0;
    pointer-events: none; /* avoid interaction during transition */
}