#bfsim-reschedule-modal {
    position        : fixed;
    top             : 0;
    left            : 0;
    width           : 100vw;
    height          : 100vh;
    background      : rgba(0, 0, 0, 0.6);
    display         : none; /* cachée par défaut */
    align-items     : center;
    justify-content : center;
    z-index         : 9999;
}

.bfsim-modal-overlay {
    position : absolute;
    top      : 0;
    left     : 0;
    width    : 100%;
    height   : 100%;
}

.bfsim-modal-content {
    position      : relative;
    background    : #fff;
    padding       : 2em;
    max-width     : 600px;
    width         : 90%;
    border-radius : 4px;
    z-index       : 10000;
    box-shadow    : 0 0 20px rgba(0, 0, 0, 0.3);
    max-height    : 90vh;
    overflow-y    : auto;
}

.bfsim-modal-close {
    position  : absolute;
    top       : 0.5em;
    right     : 1em;
    font-size : 1.5em;
    color     : #999;
    cursor    : pointer;
}

.bfsim-modal-body {
    margin-top : 1.5em;
}

.bfsim-button-loading {
    position       : relative;
    pointer-events : none;
    opacity        : 0.7;
}

.bfsim-button-loading::after {
    content          : "";
    position         : absolute;
    right            : 12px;
    top              : 50%;
    width            : 16px;
    height           : 16px;
    margin-top       : -8px;
    border           : 2px solid #fff;
    border-top-color : transparent;
    border-radius    : 50%;
    animation        : spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform : rotate(360deg);
    }
}

#bfsim-loading-overlay {
    position        : fixed;
    top             : 0;
    left            : 0;
    width           : 100%;
    height          : 100%;
    background      : rgba(255, 255, 255, 0.7);
    z-index         : 9999;
    display         : flex;
    align-items     : center;
    justify-content : center;
    font-size       : 1.5em;
    color           : #333;
    font-weight     : bold;
    cursor          : wait;
}

#bfsim-loading-overlay::before {
    content   : "Loading...";
    animation : fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity : 0;
    }
    to {
        opacity : 1;
    }
}

.bfsim-button-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.bfsim-spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: #444;
    border-radius: 50%;
    animation: bfsim-spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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