/* MODAL SECTION */
.body-scroll-lock {
    overflow: hidden !important;
    padding-right: 17px; /* Prevents content shift when scrollbar disappears */
}

.wpiko-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
}

.wpiko-modal-content {
    background-color: #fefefe;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: auto;
}

.wpiko-modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.wpiko-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media screen and (max-width: 782px) {
    .assistant-action-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    @media screen and (max-width: 480px) {
        .assistant-action-buttons {
            grid-template-columns: 1fr;
        }
    }
    
    .assistant-action-buttons .button {
        height: 120px;
    }
    .wpiko-modal-content {
        width: 98%;
        height: 95vh;
        margin: 1vh auto;
        padding: 15px;
    }
    
    .wpiko-modal-close {
        right: 15px;
        top: 5px;
    }
}

/* LOADING SPINNER CSS */
.wpiko-modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    letter-spacing: 1.5px;
    z-index: 1000;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0968fe;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.error-message {
    color: #dc3232;
    text-align: center;
    padding: 20px;
}
