/* Samdle Modal System */
.samdle-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
}

.samdle-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    max-width: 90vw;
    height: 85vh;
    max-height: 600px;
    z-index: 9999;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .samdle-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .modal-container {
        border-radius: 0;
        height: 100%;
    }
    
    .modal-close {
        top: 16px;
        right: 16px;
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Remove scrollbar from body when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Modal close button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
}

.modal-close:before {
    content: '×';
    font-size: 28px;
    line-height: 1;
    color: #333;
    font-weight: 300;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}