/* Align Icons */
svg {
    vertical-align: middle;
}

svg.text-separator {
    font-size: 0.85em;
}

/* Spinner with text extension */
.spinner-with-text {
    position: relative;
    display: inline-block;
}

.spinner-with-text .spinner-border {
    width: 4rem;
    height: 4rem;
}

.spinner-with-text .spinner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Dynamic modal width */
.dynamic-width-modal .modal-dialog {
    display: table;      /* shrink to fit content */
    width: auto;
    max-width: 90vw;            /* prevent overflowing screen */
}

.dynamic-width-modal .modal-content {
    width: auto;
}

/* Square button */
.responsive-square-btn {
    width: 100%;            /* Take full width of the column */
    aspect-ratio: 1 / 1;    /* Maintain square ratio */
    display: flex;
    justify-content: center;
    align-items: center;
}

.responsive-square-btn button {
    width: 100%;
    height: 100%;              /* Fill the square container */
    padding: 1rem;             /* Internal spacing */
    box-sizing: border-box;    /* Include padding inside width/height */
    display: flex;
    justify-content: center;   /* Center text horizontally */
    align-items: center;       /* Center text vertically */
    text-align: center;        /* Multi-line text centered */
    white-space: normal;       /* Allow text to wrap */
}

/* Multi level modal background */
.modal-content {
    transition: background-color 0.2s ease;
}

[class*="modal-level-"] {
    transform: translate(5px, 5px);
}
[class*="modal-level-"] .modal-content {
    transition: transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}