.ec-wpfd-container {
    display: flex;
    gap: 20px;
    padding: 10px;
}

/* Sidebar */
.ec-wpfd-sidebar {
    width: 260px;
    background: #eef2f7;
    padding: 15px;
    border-radius: 8px;
}
.ec-cat {
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
}
.ec-cat.active,
.ec-cat:hover {
    background: #d7e3f4;
}

/* Content table */
.ec-wpfd-table {
    width: 100%;
    border-collapse: collapse;
}
.ec-wpfd-table th,
.ec-wpfd-table td {
    border-bottom: 1px solid #ccc;
    padding: 10px;
}

.ec-actions button,
.ec-actions a {
    margin-right: 6px;
    cursor: pointer;
}

/* Mobile */
@media(max-width: 650px){
    .ec-wpfd-container { flex-direction: column; }
    .ec-wpfd-sidebar { width: 100%; }
    .ec-wpfd-table th:nth-child(2),
    .ec-wpfd-table td:nth-child(2),
    .ec-wpfd-table th:nth-child(3),
    .ec-wpfd-table td:nth-child(3) {
        display: none;
    }
}

/* Modal preview */
.ec-wpfd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.ec-wpfd-modal.active {
    display: flex;
}
.ec-wpfd-modal-content {
    background: #fff;
    width: 80%;
    height: 80%;
    position: relative;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
#ec-wpfd-iframe {
    flex: 1;
    width: 100%;
}
.ec-wpfd-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
}
.ec-wpfd-modal-actions {
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.ec-action-btn {
    padding: 6px 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 650px) {
    .ec-wpfd-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
