/* Modal Shortcode Plugin CSS */
.modal-shortcode-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-shortcode-button:hover {
    opacity: 0.9;
}

/* Link-style button */
.modal-shortcode-link {
    display: inline;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none !important;
    text-decoration: underline;
    font-weight: normal;
}

.modal-shortcode-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.modal-shortcode-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.modal-shortcode-container {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-shortcode-header {
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-shortcode-close {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal-shortcode-close:hover {
    color: #555;
}

.modal-shortcode-content {
    padding: 20px 0;
}

.modal-error {
    background-color: #fff8f8;
    border-left: 4px solid #dc3232;
    padding: 10px 15px;
    margin: 10px 0;
}

.modal-shortcode-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.modal-shortcode-close-btn {
    padding: 8px 16px;
    background-color: #ccc;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.modal-shortcode-close-btn:hover {
    background-color: #bbb;
}

/* Animation */
@keyframes modalFadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-animation {
    animation: modalFadeIn 0.3s;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .modal-shortcode-container {
        width: 95%;
        margin: 20px auto;
    }
}