/* Egna ersättare för Radzen-dialogen och SpinKit-spinnern i gamla appen */

/* Modal dialog (BKDialogHost) - samma mått som gamla Radzen-dialogen: 500x520, centrerad */
.bk-dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.bk-dialog {
    position: absolute;
    width: 500px;
    height: 520px;
    left: calc(50% - 250px);
    top: calc(50% - 260px);
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.bk-dialog-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.bk-dialog-close {
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.bk-dialog-content {
    padding: 14px;
    overflow: auto;
    flex: 1;
}

/* Sökspinner - tre pulserande prickar (ersätter SpinKit "Flow") */
.flow-spinner {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.flow-spinner div {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: salmon;
    animation: flow-bounce 1.4s infinite ease-in-out both;
}

.flow-spinner div:nth-child(1) { animation-delay: -0.32s; }
.flow-spinner div:nth-child(2) { animation-delay: -0.16s; }

@keyframes flow-bounce {
    0%, 80%, 100% { transform: scale(0.3); }
    40% { transform: scale(1); }
}
