/* ============================================================
   VBS Dashboard Styles
   ============================================================ */
.vbs-dashboard { max-width: 860px; margin: 0 auto; padding: 0 16px 48px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Header */
.vbs-dash-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 24px; flex-wrap: wrap; gap: 16px; }
.vbs-dash-welcome { display: flex; align-items: center; gap: 14px; }
.vbs-dash-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #5B6CF9, #FF6B6B); color: #fff; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vbs-dash-welcome h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; color: #1e2240; }
.vbs-dash-welcome p  { font-size: .85rem; color: #6b7280; margin: 0; }

/* Stats */
.vbs-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.vbs-stat-card {
    background: #fff; border: 1.5px solid #e2e5f1; border-radius: 12px;
    padding: 20px 16px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.05);
    text-decoration: none; display: block; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.vbs-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.10); }
.vbs-stat-card.vbs-stat-active { border-color: #5B6CF9; box-shadow: 0 0 0 2px rgba(91,108,249,.25); }
.vbs-stat-num  { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.vbs-stat-label { font-size: .8rem; color: #6b7280; font-weight: 500; }
.vbs-stat-total     .vbs-stat-num { color: #5B6CF9; }
.vbs-stat-published .vbs-stat-num { color: #22c55e; }
.vbs-stat-pending   .vbs-stat-num { color: #f59e0b; }
.vbs-stat-draft     .vbs-stat-num { color: #9ca3af; }

/* Section */
.vbs-dash-section { background: #fff; border: 1px solid #e2e5f1; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.vbs-dash-section-title {
    font-size: 1rem; font-weight: 700; color: #1e2240; margin: 0 0 20px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.vbs-dash-count { font-weight: 500; color: #9ca3af; font-size: .88rem; }
.vbs-clear-filter {
    margin-left: auto; font-size: .8rem; font-weight: 600; color: #ef4444;
    text-decoration: none; background: #fef2f2; padding: 4px 10px; border-radius: 6px;
}
.vbs-clear-filter:hover { background: #fee2e2; }

/* Empty state */
.vbs-dash-empty { text-align: center; padding: 48px 24px; color: #6b7280; }
.vbs-dash-empty p { margin: 12px 0 20px; }

/* Blog Cards */
.vbs-blog-list { display: flex; flex-direction: column; gap: 16px; }
.vbs-blog-card { display: flex; gap: 14px; background: #fafbff; border: 1px solid #e2e5f1; border-radius: 10px; overflow: hidden; transition: box-shadow .2s; }
.vbs-blog-card:hover { box-shadow: 0 4px 16px rgba(91,108,249,.12); }

.vbs-blog-thumb { width: 90px; height: 90px; flex-shrink: 0; }
.vbs-blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vbs-blog-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 2rem; background: #f0f2ff; }

.vbs-blog-info { flex: 1; padding: 12px 14px 12px 0; min-width: 0; }
.vbs-blog-top  { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.vbs-blog-title { font-size: .95rem; font-weight: 700; color: #1e2240; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbs-blog-meta  { font-size: .78rem; color: #9ca3af; margin-bottom: 8px; }

/* Admin Note */
.vbs-admin-note { background: #fff8e1; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 12px; font-size: .82rem; color: #92400e; margin-bottom: 10px; display: flex; gap: 8px; align-items: flex-start; }
.vbs-note-icon { font-size: 1rem; flex-shrink: 0; }

/* Badges */
.vbs-badge { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.vbs-badge-published { background: #dcfce7; color: #166534; }
.vbs-badge-pending   { background: #fef3c7; color: #92400e; }
.vbs-badge-draft     { background: #f3f4f6; color: #6b7280; }

/* Action buttons */
.vbs-blog-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vbs-action-btn { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 6px; text-decoration: none; border: none; cursor: pointer; transition: opacity .2s; display: inline-flex; align-items: center; gap: 4px; }
.vbs-action-btn:hover { opacity: .8; }
.vbs-action-view   { background: #e0f2fe; color: #0369a1; }
.vbs-action-edit   { background: #f0f2ff; color: #5B6CF9; }
.vbs-action-delete { background: #fff5f5; color: #b91c1c; }

/* Responsive */
@media (max-width: 560px) {
    .vbs-dash-stats { grid-template-columns: repeat(2, 1fr); }
    .vbs-dash-header { flex-direction: column; align-items: flex-start; }
    .vbs-blog-thumb { width: 72px; height: 72px; }
}
