html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.spinner {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('/img/ajax-loader.gif') 50% 250px no-repeat rgba(140, 140, 140, .8);
}

#spinnerText {
    position: absolute;
    text-align: center;
    left: calc(50% - 100px);
    top: 230px;
    font-weight: 700;
    font-size: small;
    width: 200px;
}

/* Badge styling with theme colors */
.badges {
    display: inline-block;
    padding: 0.25em 1.0em;
    border-radius: 0.25rem;
    margin-left: 5px;
    font-size: large;
}

    .badges.badges-primary {
        color: var(--dx-base-text-color, #fff); /* Fallback color if the variable is not found */
        background-color: var(--dx-accent-color, #007bff); /* Fallback color */
    }

    .badges.badges-secondary {
        color: var(--dx-base-text-color, #fff); /* Fallback color if the variable is not found */
        background-color: var(--dx-accent-color, #6c757d); /* Fallback color */
    }

    .badges.badges-success {
        color: var(--dx-base-text-color, #fff); /* Fallback color if the variable is not found */
        background-color: var(--dx-accent-color, #28a745); /* Fallback color */
    }

    .badges.badges-warning {
        color: var(--dx-base-text-color, #000); /* Fallback color if the variable is not found */
        background-color: var(--dx-accent-color, #ffc107); /* Fallback color */
    }

    .badges.badges-danger {
        color: var(--dx-base-text-color, #fff); /* Fallback color if the variable is not found */
        background-color: var(--dx-accent-color, #dc3545); /* Fallback color */
    }

    .badges.badges-light {
        color: var(--dx-base-text-color, #000); /* Fallback color if the variable is not found */
        background-color: var(--dx-accent-color, gainsboro ); /* Fallback color */
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.flexContainer, .fc {
    display: flex;
    align-items: center;
}

.fcElement {
    margin-left: 10px;
}

.element-right {
    float: right;
}

.element-left {
    float: left;
    margin-left: 5px;
}

.element-center {
    float: none;
}

.bookPicture {
    width: 70px;
}

.shadow-box {
    background-color: #f0f0f0;
    margin: 5px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
}

.DeleteConfirmPopup {
    text-align: center;
    padding: 5px;
    font-size: larger;
}

.sticky-container {
    padding: 10px 0; 
    transition: box-shadow 0.3s ease;
}

    .sticky-container.active {
        position: sticky;
        top: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }
