/* أنماط لوحة تحكم المستخدم (weebv-links) */
#weebv-links-app { direction: rtl; font-family: "Tahoma", "Segoe UI", sans-serif; max-width: 1100px; margin: 0 auto; }
#weebv-links-app [x-cloak] { display: none !important; }

.weebv-input { width: 100%; padding: 10px 12px; margin: 4px 0 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.weebv-btn-primary, .weebv-btn-secondary, .weebv-btn-danger {
	border: none; border-radius: 8px; padding: 10px 16px; font-size: 14px; cursor: pointer; font-weight: 600;
}
.weebv-btn-primary { background: #4f46e5; color: #fff; }
.weebv-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.weebv-btn-secondary { background: #f1f5f9; color: #0f172a; }
.weebv-btn-danger { background: #fee2e2; color: #b91c1c; }

.weebv-setup { max-width: 420px; margin: 60px auto; text-align: center; }
.weebv-slug-status.ok { color: #16a34a; }
.weebv-slug-status.err { color: #dc2626; }

.weebv-topbar { display: flex; align-items: center; gap: 10px; padding: 12px; background: #f8fafc; border-radius: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.weebv-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.weebv-status.published { background: #dcfce7; color: #15803d; }
.weebv-status.draft { background: #fef3c7; color: #92400e; }
.weebv-page-link { flex: 1; min-width: 120px; direction: ltr; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.weebv-columns { display: flex; gap: 24px; align-items: flex-start; }
.weebv-editor { flex: 1; min-width: 0; }
.weebv-preview-col { width: 300px; position: sticky; top: 20px; }

.weebv-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.weebv-panel h3 { margin-top: 0; }

.weebv-link-list { list-style: none; margin: 0 0 12px; padding: 0; }
.weebv-link-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.weebv-link-item .weebv-input { margin: 0; }
.weebv-drag-handle { cursor: grab; color: #94a3b8; }
.weebv-toggle { font-size: 12px; white-space: nowrap; }

.weebv-phone-frame { width: 280px; height: 570px; border-radius: 36px; background: #111827; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.weebv-phone-screen { width: 100%; height: 100%; border-radius: 26px; overflow-y: auto; padding: 30px 16px; text-align: center; }
.weebv-preview-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.weebv-preview-name { font-weight: 700; margin: 8px 0 2px; }
.weebv-preview-bio { font-size: 12px; opacity: .8; }
.weebv-preview-btn { padding: 10px; margin: 8px 0; font-size: 13px; font-weight: 600; }

.weebv-tabs { display: flex; gap: 8px; margin-top: 20px; border-top: 1px solid #e5e7eb; padding-top: 12px; }
.weebv-tabs button { background: none; border: none; padding: 8px 14px; cursor: pointer; border-radius: 8px; font-weight: 600; }
.weebv-tabs button.active { background: #eef2ff; color: #4338ca; }

.weebv-stat-cards { display: flex; gap: 12px; margin-bottom: 20px; }
.weebv-stat-card { flex: 1; background: #f8fafc; border-radius: 12px; padding: 16px; text-align: center; }
.weebv-stat-card span { display: block; font-size: 24px; font-weight: 800; }
.weebv-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.weebv-table th, .weebv-table td { text-align: right; padding: 8px; border-bottom: 1px solid #f1f5f9; }

.weebv-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.weebv-modal-box { background: #fff; padding: 20px; border-radius: 12px; text-align: center; }
.weebv-modal-box img { max-width: 260px; }

@media (max-width: 780px) {
	.weebv-columns { flex-direction: column; }
	.weebv-preview-col { width: 100%; display: flex; justify-content: center; position: static; }
}
