.wpaap-wrapper { margin: 20px 20px 0 0; font-family: inherit; }
.wpaap-wrap { max-width: 1200px; font-family: inherit; }
.wpaap-header { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 20px; border-left: 4px solid #ec1c24; }
.wpaap-header h1 { margin: 0 0 8px 0; font-size: 24px; font-weight: 600; color: #1d2327; display: flex; align-items: center; gap: 10px; }
.wpaap-header p { margin: 0; color: #646970; font-size: 14px; }
.wpaap-container { display: flex; flex-direction: column; gap: 0; }
.wpaap-card { background: #fff; padding: 24px; border-radius: 12px; box-shadow: 0 2px 12px rgba(124,58,237,0.08), 0 0 0 1.5px rgba(124,58,237,0.12); box-sizing: border-box; margin-bottom: 20px; }
.wpaap-col-left { flex: 1; min-width: 320px; }
.wpaap-col-right { flex: 2; min-width: 450px; }

/* Writer page 2-row layout */
.wpaap-writer-layout {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 20px;
    align-items: start;
    margin-bottom: 4px;
}
.wpaap-writer-main { min-width: 0; }
.wpaap-writer-sidebar { position: sticky; top: 32px; }
.wpaap-writer-bottom { width: 100%; }
@media (max-width: 960px) {
    .wpaap-writer-layout { grid-template-columns: 1fr; }
    .wpaap-writer-sidebar { position: static; }
}

/* Sidebar cards */
.wpaap-sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07), 0 0 0 1px #e8edf3;
    padding: 16px 18px;
    box-sizing: border-box;
}
.wpaap-sidebar-card-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: #0f172a;
    margin: 0 0 14px;
}
.wpaap-guide-list {
    margin: 0; padding-left: 18px;
    color: #475569; font-size: 13px; line-height: 1.8;
}
.wpaap-guide-list li { margin-bottom: 2px; }
.wpaap-tips-list {
    margin: 0 0 14px; padding-left: 18px;
    color: #475569; font-size: 13px; line-height: 1.8;
    list-style: disc;
}
.wpaap-tips-list li { margin-bottom: 2px; }
.wpaap-ai-tip-box {
    display: flex; align-items: flex-start; gap: 10px;
    background: #f5f3ff; border-radius: 10px;
    padding: 10px 12px; border: 1px solid #ede9fe;
}
.wpaap-ai-tip-icon {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    display: flex; align-items: center; justify-content: center;
}
.wpaap-ai-assistant-card {
    background: linear-gradient(135deg, #faf5ff 0%, #f0ebff 100%);
    border: 1px solid #e9d5ff;
}

/* Tiêu đề dạng Flex để đẩy Badge trạng thái sang bên phải */
.wpaap-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f0f0f1; padding-bottom: 12px; margin-bottom: 20px; }
.wpaap-card h2 { margin: 0; font-size: 18px; font-weight: 600; color: #1d2327; border: none; padding: 0; }

/* Thiết kế Badge Trạng thái hiện đại */
.wpaap-status-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.3px; }
.wpaap-status-connected { background-color: #e6f6ec; color: #0d5c3a; border: 1px solid #c2ead2; }
.wpaap-status-disconnected { background-color: #fbeae9; color: #9c2424; border: 1px solid #f7d2d0; }
.wpaap-status-pending { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.wpaap-form-group { margin-bottom: 20px; }
.wpaap-form-group label { display: block; font-weight: 500; margin-bottom: 8px; color: #1d2327; font-size: 14px; }
.wpaap-form-group input[type="text"], .wpaap-form-group select, .wpaap-form-group textarea { width: 100%; border: 1px solid #8c8f94; border-radius: 6px; padding: 10px 12px; font-size: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: all 0.2s; }
.wpaap-form-group input:focus, .wpaap-form-group select:focus, .wpaap-form-group textarea:focus { border-color: #ec1c24; box-shadow: 0 0 0 2px rgba(236,28,36,0.2); outline: none; }
.wpaap-btn { background: #ec1c24; color: #fff; border: none; padding: 12px 24px; font-size: 14px; font-weight: 500; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s; }
.wpaap-btn:hover { background: #c4151b; color: #fff; }
.wpaap-btn-secondary { background: #f6f7f7; color: #1d2327; border: 1px solid #dcdcde; }
.wpaap-btn-secondary:hover { background: #edf0f1; color: #1d2327; }
.wpaap-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; border-left: 4px solid #ec1c24; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.wpaap-notice-success { border-left-color: #00a32a; background: #f0fbf4; color: #135e26; }
.wpaap-notice-error { border-left-color: #d63638; background: #fcf0f1; color: #661214; }
.wpaap-notice-info { border-left-color: #72aee6; background: #f0f6fc; color: #1d2327; }

/* Hiệu ứng ẩn mượt mà khi sử dụng core */
#wpaap_api_key_wrapper { transition: opacity 0.3s ease, max-height 0.3s ease; overflow: hidden; }
.wpaap-hidden { opacity: 0; max-height: 0; margin-bottom: 0 !important; pointer-events: none; }

/* Styles cho khu vực hiển thị Danh sách bài viết */
.wpaap-post-list { list-style: none; margin: 0; padding: 0; }
.wpaap-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.wpaap-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.wpaap-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wpaap-post-title { font-weight: 600; font-size: 13.5px; color: #1e293b; text-decoration: none; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; transition: color 0.15s ease; }
.wpaap-post-title:hover { color: #3858e9; }
.wpaap-post-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #64748b; }
.wpaap-post-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

.wpaap-post-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}
.wpaap-post-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a !important;
    transform: translateY(-1px);
}
.wpaap-post-action-btn.btn-approve {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #16a34a !important;
}
.wpaap-post-action-btn.btn-approve:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d !important;
}
.wpaap-post-action-btn.btn-delete {
    border-color: #fecaca;
    background: #fef2f2;
    color: #ef4444 !important;
}
.wpaap-post-action-btn.btn-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626 !important;
}
.wpaap-post-action-btn svg {
    display: block;
}

@media (max-width: 480px) {
    .wpaap-post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .wpaap-post-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.wpaap-action-link { font-size: 12px; text-decoration: none; padding: 4px 8px; border-radius: 4px; font-weight: 500; transition: background 0.2s; }
.wpaap-action-view { color: #ec1c24; background: #fff5f5; }
.wpaap-action-view:hover { background: #ffe5e5; }
.wpaap-action-edit { color: #50575e; background: #f6f7f7; border: 1px solid #dcdcde; }
.wpaap-action-edit:hover { background: #edf0f1; }
.wpaap-empty-posts { text-align: center; color: #8c8f94; padding: 20px 0; font-size: 13px; }

/* Style cho phần tải ảnh đại diện */
.wpaap-image-preview-box { border: 2px dashed #dcdcde; border-radius: 6px; padding: 16px; text-align: center; background: #fafafa; margin-top: 10px; position: relative; min-height: 80px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.wpaap-image-preview-box img { max-width: 100%; max-height: 180px; border-radius: 4px; object-fit: contain; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* AJAX and Progress Bar Styles */
.wpaap-progress-bar-bg { background: #f0f0f1; border-radius: 10px; height: 10px; width: 100%; overflow: hidden; position: relative; }
.wpaap-progress-bar-fill { background: linear-gradient(90deg, #7c3aed, #a78bfa); height: 100%; width: 0%; border-radius: 10px; transition: width 0.3s ease; }
.wpaap-progress-bar-fill.wpaap-pulsing { animation: wpaap-pulse 2s infinite; }
@keyframes wpaap-pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

.wpaap-ajax-error { padding: 12px; background: #fcf0f1; border-left: 4px solid #d63638; color: #661214; border-radius: 4px; font-size: 13px; }
.wpaap-ajax-success { padding: 12px; background: #e6f6ec; border-left: 4px solid #0d5c3a; color: #0d5c3a; border-radius: 4px; font-size: 13px; }

/* CSS cho giao diện Form hiện đại (SaaS) */
.wpaap-modern-textarea {
    width: 100%;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    resize: vertical;
}
.wpaap-modern-textarea:focus {
    border-color: #3858e9;
    box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.15);
    outline: none;
}

.wpaap-modern-box {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 20px;
}

.wpaap-upload-zone {
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.wpaap-upload-zone:hover {
    border-color: #3858e9;
    background: #f0f4ff;
    color: #3858e9;
}
.wpaap-upload-icon {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #8c8f94;
    margin-bottom: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
}
.wpaap-upload-zone:hover .wpaap-upload-icon {
    color: #3858e9;
    transform: translateY(-2px);
}

.wpaap-notice-warning {
    background: #fff8e5;
    border-left: 4px solid #f0b849;
    border-radius: 4px;
    padding: 16px;
    color: #8a6d3b;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wpaap-btn-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}
.wpaap-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.45);
    color: #fff;
}

.wpaap-ajax-error { padding: 12px; background: #fbeae9; border-left: 4px solid #9c2424; color: #9c2424; border-radius: 4px; font-size: 13px; word-break: break-all; }

/* Category Selection Styles */
.wpaap-category-box { max-height: 140px; overflow-y: auto; border: 1px solid #8c8f94; padding: 10px 12px; border-radius: 6px; background: #fff; box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); transition: border-color 0.2s; }
.wpaap-category-box:hover { border-color: #3858e9; }
.wpaap-category-box label { display: flex !important; align-items: center; margin-bottom: 4px !important; font-weight: 400 !important; color: #3c434a; cursor: pointer; font-size: 14px !important; padding: 6px 8px; border-radius: 4px; transition: background 0.15s, color 0.15s; }
.wpaap-category-box label:hover { background: #f0f4ff; color: #3858e9; }
.wpaap-category-box input[type="checkbox"] { margin: 0 8px 0 0 !important; cursor: pointer; border-radius: 3px; }

/* Security Advisor Modern Layout */
.wpaap-modern-box {
    background: #ffffff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wpaap-modern-box:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.wpaap-score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 800;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.05);
    background: #fff;
    margin: 0 auto;
    position: relative;
}
.wpaap-score-circle::before {
    content: '';
    position: absolute;
    top: -12px; left: -12px; right: -12px; bottom: -12px;
    border-radius: 50%;
    z-index: -1;
}
.wpaap-score-excellent::before { background: linear-gradient(135deg, #0ce178, #07964e); }
.wpaap-score-good::before { background: linear-gradient(135deg, #ffd05a, #f0b849); }
.wpaap-score-danger::before { background: linear-gradient(135deg, #ff5e60, #d63638); }

.wpaap-issue-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    gap: 18px;
    transition: background 0.2s ease;
}
.wpaap-issue-item:last-child {
    border-bottom: none;
}
.wpaap-issue-item:hover {
    background: #fafafa;
}
.wpaap-issue-item.danger { border-left: 4px solid #d63638; background: #fffcfc; }
.wpaap-issue-item.warning { border-left: 4px solid #f0b849; background: #fffefa; }
.wpaap-issue-item.success { border-left: 4px solid #0d5c3a; background: #fafffc; }

/* Dashboard Modern Styles */
.wpaap-header-modern {
    position: relative;
    background:
        radial-gradient(ellipse at 88% 15%, rgba(124,58,237,0.09) 0%, transparent 52%),
        radial-gradient(ellipse at 94% 88%, rgba(79,70,229,0.07) 0%, transparent 46%),
        linear-gradient(110deg, #ffffff 0%, #faf8ff 38%, #ede9fe 100%);
    border-radius: 20px;
    box-shadow: 0 4px 28px rgba(124,58,237,0.13), 0 0 0 1px #ddd6fe;
    margin-bottom: 25px;
    overflow: hidden;
    min-height: 168px;
    display: flex;
    align-items: stretch;
}
@keyframes wpaap-cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.wpaap-cursor { animation: wpaap-cursor-blink 1.1s ease-in-out infinite; }
.wpaap-header-left {
    position: relative; z-index: 2;
    padding: 32px 36px;
    display: flex; flex-direction: column; justify-content: center; gap: 14px;
    max-width: 500px; flex-shrink: 0;
}
.wpaap-header-title-row { display: flex; align-items: center; gap: 14px; }
.wpaap-header-icon-box {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.wpaap-header-right {
    position: absolute; inset: 0 0 0 38%;
    overflow: hidden; pointer-events: none;
}
.wpaap-header-modern h1 {
    font-size: 24px; font-weight: 700; color: #0f172a;
    margin: 0; letter-spacing: -0.4px;
    display: flex; align-items: center; gap: 10px;
}
.wpaap-header-modern p {
    margin: 0; color: #64748b; font-size: 13.5px; line-height: 1.6;
    padding-left: 58px; max-width: 400px;
}
/* Section numbered icons */
.wpaap-section-num {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 15px; font-weight: 700; color: #fff;
}
.wpaap-section-icon-box {
    width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.wpaap-label-icon {
    width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.wpaap-upload-icon { color: #c4b5fd; display: block; }
.wpaap-section-num.blue   { background: #3858e9; box-shadow: 0 0 0 5px rgba(56,88,233,0.18),  0 0 0 10px rgba(56,88,233,0.08); }
.wpaap-section-num.indigo { background: #4f46e5; box-shadow: 0 0 0 5px rgba(79,70,229,0.18),  0 0 0 10px rgba(79,70,229,0.08); }
.wpaap-section-num.purple { background: #7c3aed; box-shadow: 0 0 0 5px rgba(124,58,237,0.18), 0 0 0 10px rgba(124,58,237,0.08); }
.wpaap-section-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.wpaap-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}
.wpaap-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}
.wpaap-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56, 88, 233, 0.08);
    border-color: #3858e9;
}
.wpaap-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wpaap-stat-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
}
.wpaap-stat-details {
    flex: 1;
}
.wpaap-stat-details h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #646970;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wpaap-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #1d2327;
    line-height: 1.1;
    margin-bottom: 6px;
}
.wpaap-stat-meta {
    font-size: 12px;
    color: #8c8f94;
}
.wpaap-stat-meta strong {
    color: #1d2327;
}
.wpaap-dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 25px;
    align-items: start;
}
@media (max-width: 1024px) {
    .wpaap-dashboard-grid-2 {
        grid-template-columns: 1fr;
    }
}
.wpaap-card-modern {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #eaeaea;
    overflow: hidden;
}
.wpaap-card-modern-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f1;
}
.wpaap-card-modern-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
}
.wpaap-card-modern-body {
    padding: 24px;
}
.wpaap-model-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.wpaap-model-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wpaap-model-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #2c3338;
}
.wpaap-model-bar-bg {
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
}
.wpaap-model-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}
.wpaap-sys-table {
    width: 100%;
    border-collapse: collapse;
}
.wpaap-sys-table td {
    padding: 14px 0;
    border-bottom: 1px dashed #f0f0f1;
    font-size: 13.5px;
    color: #2c3338;
}
.wpaap-sys-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}
.wpaap-sys-table tr td:last-child {
    text-align: right;
}
.wpaap-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wpaap-quick-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.wpaap-quick-action-btn:hover {
    background: #f0f4ff;
    border-color: #3858e9;
    transform: translateX(4px);
}
.wpaap-quick-action-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.wpaap-quick-action-btn strong {
    display: block;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 4px;
}
.wpaap-quick-action-btn p {
    margin: 0;
    font-size: 12px;
    color: #646970;
}
.wpaap-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
}
.wpaap-empty-state p {
    margin: 0;
    font-size: 13.5px;
}
.wpaap-post-list-dashboard .wpaap-post-item:hover {
    background: #f9fafb;
}
.wpaap-post-list-dashboard .wpaap-post-title {
    font-size: 13.5px;
    color: #3858e9;
}
.wpaap-post-list-dashboard .wpaap-post-title:hover {
    color: #c4151b;
}

/* Glowing LED status indicator */
.wpaap-glowing-led {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}
.led-green {
    background-color: #10b981;
    box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #065f46 0 -1px 9px, #34d399 0 2px 12px;
    animation: wpaapPulseGreen 2s infinite;
}
.led-red {
    background-color: #ef4444;
    box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #991b1b 0 -1px 9px, #f87171 0 2px 12px;
    animation: wpaapPulseRed 2s infinite;
}

@keyframes wpaapPulseGreen {
    0% {
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #065f46 0 -1px 9px, rgba(52, 211, 153, 0.5) 0 0 0 0;
    }
    70% {
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #065f46 0 -1px 9px, rgba(52, 211, 153, 0) 0 0 0 10px;
    }
    100% {
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #065f46 0 -1px 9px, rgba(52, 211, 153, 0) 0 0 0 0;
    }
}

@keyframes wpaapPulseRed {
    0% {
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #991b1b 0 -1px 9px, rgba(248, 113, 113, 0.5) 0 0 0 0;
    }
    70% {
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #991b1b 0 -1px 9px, rgba(248, 113, 113, 0) 0 0 0 10px;
    }
    100% {
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #991b1b 0 -1px 9px, rgba(248, 113, 113, 0) 0 0 0 0;
    }
}

/* Style cho trang Kết nối AI 3 nhà cung cấp mới */
.wpaap-connection-card-wrapper {
    width: 100%;
    margin-bottom: 16px;
}
.wpaap-connection-card {
    background: #fff;
    border: 1.5px solid #e2e4e7;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wpaap-connection-card:hover {
    box-shadow: 0 6px 16px rgba(56, 88, 233, 0.05);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Brand specific connected states */
.wpaap-connection-card.provider-anthropic.connected {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf8 100%);
    border-color: #fceadc;
}
.wpaap-connection-card.provider-google.connected {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
    border-color: #dbeafe;
}
.wpaap-connection-card.provider-openai.connected {
    background: linear-gradient(135deg, #ffffff 0%, #f7fcf9 100%);
    border-color: #d1fae5;
}

/* Logos styling */
.wpaap-connection-card.provider-anthropic .wpaap-connection-logo {
    background: #fff8f3;
    border-color: #fceadc;
}
.wpaap-connection-card.provider-google .wpaap-connection-logo {
    background: #f0f4ff;
    border-color: #dbeafe;
}
.wpaap-connection-card.provider-openai .wpaap-connection-logo {
    background: #f0fbf6;
    border-color: #d1fae5;
}

/* LED Indicator Dot */
.wpaap-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}
.wpaap-status-connected .wpaap-indicator-dot {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}
.wpaap-status-disconnected .wpaap-indicator-dot {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

/* Connect / Disconnect Buttons */
.wpaap-btn-connect {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3858e9;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(56, 88, 233, 0.1);
    cursor: pointer;
}
.wpaap-btn-connect:hover {
    background: #1e3bb3;
    box-shadow: 0 4px 12px rgba(56, 88, 233, 0.2);
    transform: translateY(-1px);
}
.wpaap-btn-disconnect {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #ef4444 !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid #fecaca;
    cursor: pointer;
}
.wpaap-btn-disconnect:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Global model configuration primary button */
.wpaap-btn-primary-gradient {
    background: linear-gradient(135deg, #3858e9 0%, #1e3bb3 100%);
    color: #fff !important;
    border: none;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(56, 88, 233, 0.2);
}
.wpaap-btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(56, 88, 233, 0.3);
}

/* Select styling under cards */
.wpaap-card-modern select {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    background-color: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.wpaap-card-modern select:focus {
    border-color: #3858e9;
    box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.15);
    outline: none;
}
.wpaap-card-modern select optgroup {
    font-weight: 700;
    padding: 6px;
    background: #f9fafb;
}
.wpaap-card-modern select option {
    font-weight: 500;
    padding: 8px;
    background: #fff;
}

/* Select dropdown on header */
.wpaap-header-select {
    border: 1.5px solid #c3c4c7;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 500;
    background-color: #fff;
    color: #2c3338;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 40px;
}
.wpaap-header-select:hover {
    border-color: #9ca3af;
}
.wpaap-header-select:focus {
    border-color: #3858e9;
    box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.15);
    outline: none;
}

/* Success & Danger Header Buttons */
.wpaap-btn-success-gradient {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}
.wpaap-btn-success-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.wpaap-btn-danger-gradient {
    background: linear-gradient(135deg, #ec1c24, #f37021);
    color: white !important;
    border: none;
    padding: 10px 22px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    box-shadow: 0 4px 10px rgba(236, 28, 36, 0.2);
    transition: all 0.3s ease;
}
.wpaap-btn-danger-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(236, 28, 36, 0.3);
}

/* Loading card */
.wpaap-loading-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #eaeaea;
    margin-top: 25px;
    text-align: center;
}
.wpaap-loading-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.wpaap-loading-track {
    width: 100%;
    max-width: 450px;
    height: 6px;
    background: #f3f4f6;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}
.wpaap-loading-fill {
    position: absolute;
    top: 0;
    left: -50%;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    border-radius: 10px;
    animation: wpaapLoadingMove 1.6s infinite ease-in-out;
}
@keyframes wpaapLoadingMove {
    0% { left: -40%; }
    50% { width: 60%; }
    100% { left: 100%; }
}

/* AI Chat Panel Styles */
.wpaap-chat-msg-user {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    max-width: 90%;
    align-self: flex-end;
    flex-direction: row-reverse;
}
.wpaap-chat-bubble-user {
    background: #3858e9;
    color: #fff;
    border-radius: 12px;
    border-top-right-radius: 2px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(56, 88, 233, 0.15);
    word-break: break-word;
}
.wpaap-chat-msg-ai {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    max-width: 90%;
}
.wpaap-chat-bubble-ai {
    background: #fff;
    border: 1.5px solid #e2e4e7;
    border-radius: 12px;
    border-top-left-radius: 2px;
    padding: 10px 14px;
    font-size: 13px;
    color: #2c3338;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.01);
    word-break: break-word;
}
.wpaap-chat-actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-top: 1px dashed #e2e4e7;
    padding-top: 6px;
}
.wpaap-chat-action-link {
    font-size: 11.5px;
    text-decoration: none !important;
    color: #646970;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.15s;
}
.wpaap-chat-action-link:hover {
    color: #3858e9;
}
.wpaap-chat-action-link.primary {
    color: #3858e9;
    font-weight: 600;
}
.wpaap-chat-action-link.primary:hover {
    color: #1e3bb3;
}
/* Typing Indicator */
.wpaap-typing-dot {
    width: 6px;
    height: 6px;
    background: #8c8f94;
    border-radius: 50%;
    animation: wpaapTyping 1.4s infinite ease-in-out;
}
.wpaap-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.wpaap-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes wpaapTyping {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Time-based stats grid and cards */
.wpaap-time-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.wpaap-time-card {
    border-radius: 10px;
    padding: 18px 16px;
    border: 1px solid #eaeaea;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}
.wpaap-time-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.wpaap-time-card-number {
    font-size: 26px;
    font-weight: 800;
    color: #1d2327;
    line-height: 1.1;
}
.wpaap-time-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #646970;
}

/* Accents for time-based cards */
.wpaap-time-today {
    background: #eff6ff;
    border-left: 4px solid #3858e9;
    border-color: #dbeafe;
}
.wpaap-time-today:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
}
.wpaap-time-today .wpaap-time-card-number {
    color: #1e3bb3;
}

.wpaap-time-yesterday {
    background: #faf5ff;
    border-left: 4px solid #a855f7;
    border-color: #f3e8ff;
}
.wpaap-time-yesterday:hover {
    background: #f3e8ff;
    border-color: #e9d5ff;
}
.wpaap-time-yesterday .wpaap-time-card-number {
    color: #7e22ce;
}

.wpaap-time-week {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    border-color: #ffedd5;
}
.wpaap-time-week:hover {
    background: #ffedd5;
    border-color: #fed7aa;
}
.wpaap-time-week .wpaap-time-card-number {
    color: #c2410c;
}

.wpaap-time-month {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    border-color: #d1fae5;
}
.wpaap-time-month:hover {
    background: #d1fae5;
    border-color: #a7f3d0;
}
.wpaap-time-month .wpaap-time-card-number {
    color: #047857;
}

/* Custom styles for Package Limit Bar */
.wpaap-package-progress-wrapper {
    margin-top: 5px;
    margin-bottom: 5px;
}
.wpaap-package-bar-bg {
    background: #f1f5f9;
    border-radius: 12px;
    height: 12px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}
.wpaap-package-bar-fill {
    background: linear-gradient(90deg, #06b6d4 0%, #6366f1 100%);
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.wpaap-package-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e2e4e7;
}
.wpaap-package-toggle-edit {
    font-size: 12.5px;
    color: #3858e9;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    cursor: pointer;
}
.wpaap-package-toggle-edit:hover {
    color: #1e3bb3;
}
.wpaap-package-edit-form {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    animation: wpaapFadeIn 0.2s ease;
}
@keyframes wpaapFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating AI Chatbot Toggle Button */
.wpaap-chatbot-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3858e9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 4px 16px rgba(56, 88, 233, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wpaap-chatbot-toggle:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 24px rgba(56, 88, 233, 0.4);
    background: #1e3bb3;
}
.wpaap-chatbot-toggle:active {
    transform: scale(0.95);
}
.wpaap-chatbot-toggle .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* Chatbot Drawer Panel */
.wpaap-chatbot-drawer {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 380px;
    height: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    border: 1px solid rgba(226, 228, 231, 0.8);
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wpaap-chatbot-drawer.wpaap-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Chatbot Header */
.wpaap-chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #3858e9;
    color: #fff;
}
.wpaap-chatbot-header-title {
    font-weight: 600;
    font-size: 15.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wpaap-chatbot-header-title .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.wpaap-chatbot-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}
.wpaap-chatbot-close-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.wpaap-chatbot-close-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Chat messages box */
.wpaap-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid #eaeaea;
}

/* Chat Messages */
.wpaap-chat-msg-user {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: flex-start;
    max-width: 90%;
    align-self: flex-end;
}
.wpaap-chat-avatar-user {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    border: 1.5px solid #cbd5e1;
}
.wpaap-chat-avatar-user .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
.wpaap-chat-bubble-user {
    background: #e2e8f0;
    color: #1e293b;
    padding: 10px 14px;
    border-radius: 12px 2px 12px 12px;
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
}

.wpaap-chat-msg-ai {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 90%;
    align-self: flex-start;
}
.wpaap-chat-avatar-ai {
    width: 28px;
    height: 28px;
    background: #3858e9;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.wpaap-chat-avatar-ai .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
.wpaap-chat-bubble-ai {
    background: #fff;
    color: #1e293b;
    padding: 10px 14px;
    border-radius: 2px 12px 12px 12px;
    font-size: 13.5px;
    line-height: 1.45;
    border: 1px solid rgba(226,228,231,0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    word-break: break-word;
}

/* Chat Actions */
.wpaap-chat-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
    flex-wrap: wrap;
}
.wpaap-chat-action-link {
    font-size: 11.5px;
    text-decoration: none !important;
    color: #64748b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    cursor: pointer;
}
.wpaap-chat-action-link:hover {
    color: #3858e9;
}
.wpaap-chat-action-link.primary {
    color: #3858e9;
    font-weight: 600;
}
.wpaap-chat-action-link.primary:hover {
    color: #1e3bb3;
}
.wpaap-chat-action-link .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Typing Indicator (Dots) */
.wpaap-typing-dot {
    width: 6px;
    height: 6px;
    background: #3858e9;
    border-radius: 50%;
    display: inline-block;
    animation: wpaapDotFlash 1.4s infinite both;
}
.wpaap-typing-dot:nth-child(2) { animation-delay: .2s; }
.wpaap-typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes wpaapDotFlash {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Input Form */
.wpaap-chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    align-items: center;
    border-top: 1px solid #eaeaea;
    margin: 0 !important;
}
.wpaap-chatbot-form input[type="text"] {
    flex: 1;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
    transition: all 0.2s ease !important;
    height: 38px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: #fff !important;
    color: #1d2327 !important;
}
.wpaap-chatbot-form input[type="text"]:focus {
    border-color: #3858e9 !important;
    box-shadow: 0 0 0 2.5px rgba(56, 88, 233, 0.15) !important;
    outline: none !important;
}
.wpaap-chatbot-send-btn {
    background: #3858e9;
    color: #fff;
    border: none;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(56, 88, 233, 0.2);
    flex-shrink: 0;
    margin: 0;
}
.wpaap-chatbot-send-btn:hover {
    background: #1e3bb3;
    box-shadow: 0 4px 10px rgba(56, 88, 233, 0.3);
    color: #fff;
}

/* Responsiveness */
@media (max-width: 480px) {
    .wpaap-chatbot-drawer {
        width: calc(100% - 40px);
        bottom: 90px;
        right: 20px;
        left: 20px;
        height: 450px;
    }
}

/* ── Pending posts table ─────────────────────────────── */
.wpaap-posts-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 5px; table-layout: fixed; }
.wpaap-posts-table th {
    padding: 10px 10px; text-align: left; font-size: 13px; font-weight: 600;
    color: #64748b; border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.wpaap-posts-table th.cb, .wpaap-posts-table td.cb { width: 32px; padding-right: 4px; }
.wpaap-posts-table th:nth-child(2) { width: auto; }
.wpaap-posts-table th:nth-child(3) { width: 90px; }
.wpaap-posts-table th:nth-child(4) { width: 70px; }
.wpaap-posts-table th:nth-child(5) { width: 100px; }
.wpaap-posts-table th:nth-child(6) { width: 130px; }
.wpaap-posts-table td {
    padding: 10px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: middle;
    color: #1e293b; font-size: 13px;
}
.wpaap-posts-table tbody tr:last-child td { border-bottom: none; }
.wpaap-posts-table tbody tr:hover td { background: #fafbff; }
.wpaap-posts-table tbody tr.selected td { background: #eff2fe; }
.wpaap-posts-table td:last-child { white-space: nowrap; }
.wpaap-post-title-link {
    color: #0f172a; font-weight: 500; font-size: 13.5px; text-decoration: none;
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wpaap-post-title-link:hover { color: #7c3aed; }
.wpaap-type-badge {
    background: #eff2fe; color: #3858e9; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}
.wpaap-action-link {
    font-size: 13px; font-weight: 600; text-decoration: none; margin-right: 10px;
    white-space: nowrap;
}
.wpaap-action-link.edit   { color: #6366f1; }
.wpaap-action-link.approve{ color: #16a34a; }
.wpaap-action-link.delete { color: #ef4444; }
.wpaap-action-link:hover  { text-decoration: underline; }

/* Bulk action bar */
.wpaap-bulk-bar {
    display: flex; align-items: center; gap: 10px;
    background: #eff2fe; border-radius: 8px; padding: 9px 14px;
    margin-bottom: 10px; border: 1px solid #c7d2fe;
    animation: wpaap-fadein 0.2s ease;
}
@keyframes wpaap-fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes wpaap-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.wpaap-bulk-count { font-size: 13px; font-weight: 600; color: #3858e9; flex: 1; }
.wpaap-bulk-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; font-weight: 600; padding: 6px 13px;
    border-radius: 6px; border: none; cursor: pointer; transition: all 0.15s;
}
.wpaap-bulk-btn.approve { background: #dcfce7; color: #16a34a; }
.wpaap-bulk-btn.approve:hover { background: #16a34a; color: #fff; }
.wpaap-bulk-btn.delete  { background: #fee2e2; color: #dc2626; }
.wpaap-bulk-btn.delete:hover  { background: #dc2626; color: #fff; }