.wpaw-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 15px;
    margin-bottom: 24px;
}

.wpaw-header h1 {
    margin: 0;
    font-size: 2.2em;
    color: #23282d;
}

.wpaw-header .dashicons {
    font-size: 2.2em;
    color: #0073aa;
}

.plugin-wrapper {
    display: flex;
    padding-right: 20px;
}
.plugin-left {
    flex: 1;
    padding-right: 24px;
}
.plugin-right {
    width: 450px;
}

.card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    margin-top: 24px;
    padding: 24px 24px 16px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s;
    max-width: inherit;
    width: 100%;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 123, 170, 0.08);
    border-color: #0073aa;
}

.card h2 {
    margin-top: 0;
    color: #0073aa;
    font-size: 1.3em;
}

.widefat {
    width: 100%;
    margin: 18px 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.widefat th,
.widefat td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    font-size: 1em;
}

.widefat th {
    background: #f0f6fa;
    color: #0073aa;
    font-weight: 600;
    font-size: 1.05em;
}

.sidebar-header th {
    background: #eaf6fb;
    font-weight: bold;
    color: #23282d;
    font-size: 1.08em;
}

.widefat td.shortcode-cell {
    min-width: 420px;
    padding-right: 0;
}

.shortcode-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

code {
    background: #f6f7f7;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 1.05em;
    color: #d63384;
    white-space: nowrap;
}

.copy-shortcode {
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 16px;
    font-size: 0.98em;
    margin-left: 4px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.copy-shortcode:hover,
.copy-shortcode:focus {
    background: #005177;
    color: #fff;
}

@media (max-width: 600px) {

    .card,
    .widefat th,
    .widefat td {
        font-size: 0.98em;
        padding: 10px 6px;
    }

    .wpaw-header h1 {
        font-size: 1.3em;
    }

    .widefat td.shortcode-cell {
        min-width: 0;
    }

    .shortcode-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Modal styles */
#wpaw-preview-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpaw-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 95vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 2em 2em 1em 2em;
    position: relative;
    z-index: 100001;
    min-height: 120px;
}

.wpaw-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 2em;
    color: #888;
    cursor: pointer;
    padding: 4px 8px 8px 8px !important;
    height: 14px !important;
    z-index: 100002;
    box-sizing: content-box;
}
.wpaw-modal-container .wpaw-modal-close{
    right: 15px;
    top: 14px;
}
.wpaw-modal-close:hover {
    color: #d63384;
}

.wpaw-modal-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    z-index: 100000;
}

.wpaw-builder-button span {
    margin-right: 10px;
}

.wpaw-builder-button span::before {
    color: #FFFFFF;
}

#wpaw-preview-area {
    min-height: 80px;
    margin-top: 1em;
    max-height: 80vh;
    /* overflow: auto; */
}
#wpaw-preview-area figure {
    margin: 0; 
}
#wpaw-preview-area .wp-block-image img {
    max-width: 100%;
    height: auto;
    /* max-height: 360px; */
    width: 100%;
}

#wpaw-preview-loader .dashicons {
    font-size: 2em;
    color: #0073aa;
    animation: wpaw-spin 1s linear infinite;
    width: 26px;
    height: 26px;
    margin-right: 5px;
    vertical-align: middle;
}

.wpaw-intro p {
    margin: 0 0 0.8em;
    line-height: 1.6;
}

.wpaw-overflow-hidden {
    overflow: hidden;
}

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