:root {
    --primary-bg-color: #337ab7;
    --primary-border-color: #2e6da4;
    --secondary-bg-color: #f9f9f9;
    --secondary-border-color: #c0c0c0;
}

.margin-bottom {
    margin-bottom: 15px;
}

.margin-bottom-large {
    margin-bottom: 45px;
}

.margin-top {
    margin-top: 15px;
}

.margin-top-large {
    margin-top: 45px;
}

.margin-right {
    margin-right: 15px;
}

.margin-vertical {
    margin-top: 15px;
    margin-bottom: 15px;
}

.margin-vertical-large {
    margin-top: 45px;
    margin-bottom: 45px;
}

.no-margin-bottom {
    margin-bottom: 0;
}

.padding-top {
    padding-top: 15px;
}

.max-available-width {
    max-width: -webkit-fill-available;
}

.main-heading-element {
    margin-top: 20px;
    margin-bottom: 20px;
}

.padded-panel {
    padding-left: 10%;
    padding-right: 10%;
    margin-bottom: 0;
}


.form-control-top {
    margin-top: 10px;
}

input[type="radio"] {
    margin-bottom: 0;
}

.custom-form-check-label {
    display: contents;
}

.inline-block {
    display: inline-block;
}

.limit-max-width {
    max-width: 100%;
}

.totp-app-init-panel {
    margin-bottom: 15px;
    border: 1px solid var(--secondary-border-color);
    border-radius: 5px;
    background-color: var(--secondary-bg-color);
    padding: 10px
}

.totp-app-init-code {
    word-wrap: break-word;
}

@media (max-width: 1200px) {
    .panel-margins {
        margin-top: 15px;
        margin-left: 15px;
        margin-right: 15px;
    }
}

.verify-totp {
    width: 30%;
}

.qr-codes {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .verify-totp {
        width: 100%;
    }

    .totp-verify-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 1200px) {
    .desktop-sticky {
        position: sticky;
        top: 0;
    }
}

.alternate-row:nth-child(even) {
    background-color: var(--secondary-bg-color);
}

/* Progress bar */
body {
    background-color: #eee;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
}

.horizontal-centered-spaced {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-indicator-margin {
    margin-top: 15px;
    margin-bottom: 45px;
}

.line {
    width: 100%;
    height: 6px;
}

.empty {
    background: lightgray
}

.filled {
    background: var(--primary-bg-color);
}

.steps {
    display: flex;
    color: #fff;
    font-size: 14px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 20px;
}

/* hide links to PI docs */

a[href*="privacyidea.readthedocs.io"] {
    display: none !important;
}

/* search bar */

#find-user {
    margin-right: 1em;
}

#androidAppQrCode img {
    min-width: fit-content;
}

#iosAppQrCode img {
    min-width: fit-content;
}

/* Loader */
.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid var(--primary-bg-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.collapse-indicator {
    transition: transform 0.3s ease;
}

.accordion-toggle[aria-expanded="true"] .collapse-indicator {
    transform: rotate(180deg);
}

.panel-heading.no-padding {
    padding: 0; /* Cancel the padding */
}

.panel-heading.no-padding {
    padding: 0; /* Cancel the padding */
}
