* {
    --accent: #1b376c;
    --border: #dee2e6;
    --content: #ffffff;
    --background: #eeeeee;
    --text1: #fdfdfd;
}

body {
    background-color: var(--background);

    & footer {
        background-color: var(--content);
        position: fixed;
        width: 100%;
        bottom: 1px;
        text-align: center;
        border-top: 1px solid var(--border);
    }
}

header {
    & h1 {
        font-size: 1.5em;
        font-weight: bold;
        margin: 0;
        justify-self: center;
        color: var(--text1);
    }
    & img {
        height: 2em;
    }
    & .logout {
        justify-self: right;
        font-size: 0.8em;
        color: var(--text1);
    }
    & .logout:hover {
        color: var(--text1);
    }
    background-color: var(--accent);
    height: 60px;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1em;
    padding: 0 1.5em;
}

main {
     background-color: var(--content);
}

.tab-list {
    & button {
        border: none;
        padding: 0.3em;
        cursor: pointer;
        background-color: transparent;
        color: var(--textColor);
        border-bottom: solid 2px var(--border);
    }
    & button:hover {
        border-color: var(--accent);
    }
    & button.selected {
        border-color: var(--accent);
    }
    margin-bottom: 1.5em;
}

.tab-content {
    & h3 {
        margin-bottom: 1em;
        font-size: 1.3em;
    }
}

table {
    width: 50%;
}

/* from base */

.container {
    margin-top: 2em;
}

.btn-danger {
    background-color: #007bff;
    color: white; /* Text color */
    border-color: #007bff; /* Border color */

    & .download-spinner {
        display: none;
    }
    &.htmx-request .download-spinner {
        display: inline-block;
    }
    &.htmx-request {
        cursor: not-allowed;
        opacity: 0.8;
    }
}
.btn-danger.disabled, .btn-danger:disabled {
    background-color: #007bff;
    border-color: white;
    /* Optionally keep the same text color if desired */
    color: #fff;
}

#errors {
    position: fixed;
    bottom: 10%;
    left: calc(50% - min(50%, 200px));
    z-index: 1000;
    max-width: 400px;
    width: 100%;

    & .alert {
        display: flex;
        justify-content: space-between;
        gap: 1em;
        margin-bottom: 0.5em;
    }

    & button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        line-height: 1;
        color: inherit;
        opacity: 0.7;
        flex-shrink: 0;
    }

    & button:hover {
        opacity: 1;
    }
}

.error-page {
    text-align: center;
    padding: 4em 0;

    & h1 {
        font-size: 6em;
        font-weight: bold;
        color: var(--accent);
        margin: 0;
    }

    & p {
        font-size: 1.25em;
        color: #555;
        margin: 0.5em 0 1.5em;
    }
}
