/* Ensure body and html take full height but are not stretched unnecessarily */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content container should fill remaining space */
#main-content {
    flex-grow: 1;
    overflow-y: auto; /* Allow scrolling if needed */
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* Table container should expand to fill available space */
#gitea-actions-table {
    width: 100%;  /* Ensure the table takes up full width */
    table-layout: auto; /* Allow resizing based on content */
    border-collapse: collapse;
    max-height: 70vh; /* Allow it to take up a portion of the screen but not the entire height */
    overflow-y: auto; /* Enable scrolling inside the table if content overflows */
}

/* Ensure the table grows dynamically */
.tabulator {
    width: 100%;
    height: auto !important; /* Remove any fixed height constraints */
}

/* Styling the spinner (loading indicator) */
#spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
}

/* Row count and status display */
#row-count {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

/* Make sure the footer (pagination) is visible */
.tabulator-footer {
    display: block;  /* Ensure pagination footer is visible */
}
