.wpfb-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}
/* Override theme content width - scoped to plugin container only */
.entry-content .wpfb-container,
.post-content .wpfb-container,
.page-content .wpfb-container,
article .wpfb-container,
.st-main .wpfb-container,
#content .wpfb-container,
.content .wpfb-container {
    max-width: 100% !important;
    width: 100% !important;
}
.wpfb-form-wrapper,
.wpfb-posts-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Form */
.wpfb-form-wrapper {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}
.wpfb-form-wrapper h3 {
    margin: 0 0 16px;
    font-size: 1.2em;
}
.wpfb-form-field {
    margin-bottom: 16px;
}
.wpfb-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9em;
}
.wpfb-form-field .required {
    color: #e53935;
    margin-left: 2px;
}
.wpfb-form-field input[type="text"],
.wpfb-form-field textarea,
.wpfb-form-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95em;
    box-sizing: border-box;
}
.wpfb-form-field textarea { resize: vertical; }
.wpfb-radio-group label {
    display: inline-block;
    margin-right: 16px;
    font-weight: normal;
}
.wpfb-submit-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.wpfb-submit-btn:hover { background: #1565c0; }
.wpfb-submit-btn:disabled { background: #90a4ae; cursor: not-allowed; }

.wpfb-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9em;
}
.wpfb-message.success { background: #e8f5e9; color: #2e7d32; }
.wpfb-message.error { background: #ffebee; color: #c62828; }

/* Posts */
.wpfb-posts-list h3 {
    font-size: 1.2em;
    margin-bottom: 16px;
}
.wpfb-count { color: #666; font-weight: normal; font-size: 0.85em; }
.wpfb-empty { color: #888; font-style: italic; }

.wpfb-post-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}
.wpfb-post-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.wpfb-post-field {
    margin-bottom: 6px;
    font-size: 0.95em;
}
.wpfb-field-label {
    font-weight: 600;
    color: #555;
    margin-right: 6px;
}
.wpfb-post-meta {
    margin-top: 10px;
    font-size: 0.8em;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wpfb-post-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Like button */
.wpfb-like-btn {
    background: none;
    border: 1px solid #e0e0e0;
    color: #888;
    font-size: 0.9em;
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.wpfb-like-btn:hover { border-color: #e91e63; color: #e91e63; }
.wpfb-like-btn.liked { background: #fce4ec; border-color: #e91e63; color: #e91e63; }

/* Delete button */
.wpfb-delete-btn {
    background: none;
    border: 1px solid #e0e0e0;
    color: #888;
    font-size: 0.9em;
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.wpfb-delete-btn:hover { border-color: #d63638; color: #d63638; }

/* Pagination */
.wpfb-pagination {
    margin-top: 24px;
    text-align: center;
}
.wpfb-pagination a,
.wpfb-pagination .current {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: 4px;
    text-decoration: none;
}
.wpfb-pagination a {
    background: #f0f0f0;
    color: #333;
}
.wpfb-pagination a:hover { background: #e0e0e0; }
.wpfb-pagination .current {
    background: #1976d2;
    color: #fff;
}

/* Copy button */
.wpfb-copy-btn {
    background: none;
    border: 1px solid transparent;
    font-size: 0.8em;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    opacity: 0.4;
    transition: all 0.2s;
}
.wpfb-post-field:hover .wpfb-copy-btn { opacity: 1; }
.wpfb-copy-btn:hover { background: #e3f2fd; border-color: #90caf9; }
.wpfb-copy-btn.copied { color: #2e7d32; opacity: 1; }

/* Report button */
.wpfb-report-btn {
    background: none;
    border: 1px solid #ccc;
    color: #888;
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.2s;
}
.wpfb-report-btn:hover {
    border-color: #d63638;
    color: #d63638;
}

/* Report Modal */
.wpfb-report-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wpfb-report-modal[hidden],
.wpfb-report-modal[aria-hidden="true"],
.wpfb-delete-btn[hidden] {
    display: none !important;
}
.wpfb-modal-open { overflow: hidden; }
.wpfb-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.wpfb-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    box-sizing: border-box;
}
.wpfb-modal-content h3 {
    margin: 0 0 8px;
    font-size: 1.3em;
}
.wpfb-report-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.9em;
    color: #856404;
}
.wpfb-field-hint {
    font-size: 0.8em;
    color: #888;
    margin-top: 4px;
}
.wpfb-modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.wpfb-cancel-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
}
.wpfb-cancel-btn:hover { background: #e0e0e0; }

@media (max-width: 600px) {
    .wpfb-form-wrapper { padding: 16px; }
    .wpfb-post-card { padding: 14px; }
    .wpfb-post-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .wpfb-post-actions {
        flex-wrap: wrap;
        width: 100%;
    }
    .wpfb-report-btn { margin-left: 0; }
    .wpfb-modal-content {
        padding: 20px;
        width: calc(100% - 24px);
    }
    .wpfb-modal-actions { flex-wrap: wrap; }
}
