.arb-board-pro{padding:0;background:transparent;border:none;box-shadow:none;}

/* ===== الشريط العلوي ===== */
.arb-wb-topbar{
    display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
    background:#2B3245;border-radius:14px 14px 0 0;padding:8px 12px;
}
.arb-wb-group{display:flex;align-items:center;gap:6px;}
.arb-wb-ico{
    background:rgba(255,255,255,.08);border:none;border-radius:9px;width:36px;height:36px;
    color:#E6EAF5;cursor:pointer;font-size:14px;transition:background .13s ease;
}
.arb-wb-ico:hover{background:rgba(255,255,255,.2);}
.arb-wb-ico.arb-wb-muted{background:rgba(220,38,38,.28);color:#FF8A80;}
.arb-wb-ico.arb-wb-muted:hover{background:rgba(220,38,38,.4);}
.arb-wb-page-num{
    color:#E6EAF5;font-weight:800;font-size:13px;background:rgba(255,255,255,.08);
    padding:7px 14px;border-radius:9px;min-width:62px;text-align:center;
}

/* ===== منطقة الرسم ===== */
.arb-wb-stage{
    position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;
    background:#fff;border-left:2px solid #2B3245;border-right:2px solid #2B3245;
}
.arb-wb-canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;}
.arb-wb-guide{
    position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
    font-family:'Amiri',serif;font-size:clamp(80px,22vw,220px);color:rgba(13,27,62,.13);
    pointer-events:none;user-select:none;line-height:1;direction:rtl;text-align:center;padding:0 20px;
}
.arb-wb-guide.hidden{display:none;}

/* ===== اللوحات المنزلقة ===== */
.arb-wb-panel{
    position:absolute;top:12px;background:#2B3245;border-radius:14px;padding:14px;
    width:212px;z-index:20;box-shadow:0 12px 34px rgba(0,0,0,.34);
    transition:transform .24s ease,opacity .2s ease;
}
.arb-wb-panel-bg{right:12px;transform:translateX(calc(100% + 24px));opacity:0;pointer-events:none;}
.arb-wb-panel-pen{left:12px;transform:translateX(calc(-100% - 24px));opacity:0;pointer-events:none;}
.arb-wb-panel.open{transform:translateX(0);opacity:1;pointer-events:auto;}

.arb-wb-panel-title{
    color:#AEB8D4;font-size:11px;font-weight:800;margin:10px 0 7px;text-align:right;
}
.arb-wb-panel-title:first-child{margin-top:0;}

.arb-wb-colors,.arb-wb-bg-colors{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;}
.arb-wb-swatch{
    width:100%;aspect-ratio:1;border-radius:50%;border:2px solid transparent;cursor:pointer;
    transition:transform .12s ease;box-shadow:0 0 0 1px rgba(255,255,255,.14);
}
.arb-wb-swatch:hover{transform:scale(1.14);}
.arb-wb-swatch.active{border-color:#fff;transform:scale(1.16);}

.arb-wb-bg-patterns{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;}
.arb-wb-pat{
    background:rgba(255,255,255,.07);border:2px solid transparent;border-radius:9px;
    padding:9px 4px;color:#E6EAF5;font-size:11px;font-weight:700;cursor:pointer;
}
.arb-wb-pat:hover{background:rgba(255,255,255,.16);}
.arb-wb-pat.active{border-color:#E55A2B;background:rgba(229,90,43,.2);}

.arb-wb-slider-row{margin-top:12px;}
.arb-wb-slider-row label{display:block;color:#AEB8D4;font-size:11px;font-weight:700;margin-bottom:5px;text-align:right;}
.arb-wb-slider-row input[type=range]{width:100%;accent-color:#E55A2B;}

.arb-wb-bg-img-row{display:flex;gap:6px;}
.arb-wb-mini-btn{
    flex:1;background:rgba(255,255,255,.09);border:none;border-radius:8px;padding:8px 4px;
    color:#E6EAF5;font-size:11px;font-weight:700;cursor:pointer;text-align:center;
}
.arb-wb-mini-btn:hover{background:rgba(255,255,255,.18);}
.arb-wb-danger{color:#FF8A80;}

.arb-wb-tab{
    position:absolute;top:50%;transform:translateY(-50%);background:#2B3245;border:none;
    width:30px;height:54px;color:#E6EAF5;cursor:pointer;z-index:19;font-size:13px;
}
.arb-wb-tab-bg{right:0;border-radius:10px 0 0 10px;}
.arb-wb-tab-pen{left:0;border-radius:0 10px 10px 0;}
.arb-wb-tab:hover{background:#E55A2B;}

/* ===== شريط الأدوات السفلي ===== */
.arb-wb-toolbar{
    display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;
    background:#2B3245;border-radius:0 0 14px 14px;padding:10px 12px;
}
.arb-wb-tool{
    background:rgba(255,255,255,.07);border:none;border-radius:10px;width:40px;height:40px;
    color:#E6EAF5;cursor:pointer;font-size:15px;transition:all .13s ease;
}
.arb-wb-tool:hover{background:rgba(255,255,255,.2);}
.arb-wb-tool.active{background:#E55A2B;color:#fff;}
.arb-wb-sep{width:1px;height:26px;background:rgba(255,255,255,.16);margin:0 4px;}

/* ===== الملصقات ===== */
.arb-wb-stickers{
    display:none;grid-template-columns:repeat(8,1fr);gap:6px;
    background:#2B3245;border-radius:12px;padding:12px;margin-top:8px;
}
.arb-wb-stickers.open{display:grid;}
.arb-wb-sticker{
    background:rgba(255,255,255,.07);border:none;border-radius:9px;aspect-ratio:1;
    font-size:21px;cursor:pointer;transition:transform .12s ease;
}
.arb-wb-sticker:hover{background:rgba(255,255,255,.2);transform:scale(1.14);}

/* ===== المكافآت والتشجيع ===== */
.arb-wb-rewards{
    display:none;grid-template-columns:repeat(8,1fr);gap:6px;
    background:#2B3245;border-radius:12px;padding:12px;margin-top:8px;
}
.arb-wb-rewards.open{display:grid;}
.arb-wb-reward{
    background:rgba(255,255,255,.07);border:none;border-radius:9px;aspect-ratio:1;
    font-size:21px;cursor:pointer;transition:transform .12s ease;
    display:flex;align-items:center;justify-content:center;color:#E6EAF5;
}
.arb-wb-reward:hover{background:rgba(255,255,255,.2);transform:scale(1.14);}
.arb-wb-reward-badge{
    grid-column:span 2;font-size:12px;font-weight:800;color:#fff;background:#1A7A55;
}
.arb-wb-reward-badge:hover{filter:brightness(1.12);transform:none;}

/* ===== تنقل النموذج ===== */
.arb-wb-trace-nav{
    display:flex;align-items:center;justify-content:center;gap:14px;
    background:var(--arb-cream);border-radius:12px;padding:9px;margin-top:10px;
}
.arb-wb-trace-nav .arb-wb-ico{background:rgba(13,27,62,.07);color:var(--arb-txt-mid);}
.arb-wb-trace-nav .arb-wb-ico:hover{background:var(--arb-accent);color:#fff;}
.arb-wb-trace-label{text-align:center;min-width:110px;}
#arb-wb-trace-name{display:block;font-size:24px;font-weight:800;color:var(--arb-txt);font-family:'Amiri',serif;line-height:1.2;}
#arb-wb-trace-count{font-size:11px;color:var(--arb-txt-light);}

/* ملء الشاشة */
.arb-board-pro:fullscreen{background:#1B2030;padding:14px;display:flex;flex-direction:column;}
.arb-board-pro:fullscreen .arb-wb-stage{flex:1;aspect-ratio:auto;}
.arb-board-pro:fullscreen .arb-tool-hint{display:none;}

@media(max-width:600px){
    .arb-wb-stage{aspect-ratio:4/3;}
    .arb-wb-tool{width:36px;height:36px;font-size:13px;}
    .arb-wb-panel{width:172px;}
    .arb-wb-stickers{grid-template-columns:repeat(6,1fr);}
    .arb-wb-rewards{grid-template-columns:repeat(5,1fr);}
    .arb-wb-topbar{justify-content:center;}
}

/* ===== محرر النص على السبورة ===== */
.arb-wb-text-input{
    position:absolute;z-index:22;transform:translate(-50%,-50%);
    min-width:150px;max-width:70%;background:rgba(255,255,255,.96);
    border:2px solid #3B82F6;border-radius:8px;padding:6px 10px;
    outline:none;resize:none;overflow:hidden;line-height:1.4;text-align:center;
    box-shadow:0 6px 22px rgba(0,0,0,.2);
}

/* ===== شريط النص ===== */
.arb-wb-text-toolbar{
    position:absolute;top:12px;left:50%;transform:translateX(-50%) translateY(-16px);
    background:#2B3245;border-radius:11px;padding:7px 10px;display:flex;gap:7px;align-items:center;
    z-index:23;box-shadow:0 10px 28px rgba(0,0,0,.34);opacity:0;pointer-events:none;
    transition:opacity .18s ease,transform .18s ease;
}
.arb-wb-text-toolbar.open{opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0);}
.arb-wb-mini-select{
    background:rgba(255,255,255,.1);border:none;border-radius:7px;color:#E6EAF5;
    padding:6px 8px;font-size:12px;font-weight:700;cursor:pointer;
}
.arb-wb-mini-select option{background:#2B3245;color:#E6EAF5;}
.arb-wb-fbtn{
    background:rgba(255,255,255,.1);border:none;border-radius:7px;color:#E6EAF5;
    width:30px;height:30px;cursor:pointer;font-size:13px;
}
.arb-wb-fbtn:hover{background:rgba(255,255,255,.22);}
.arb-wb-fbtn.active{background:#E55A2B;color:#fff;}

/* زر إدراج الصورة (label بيتصرف كزرار أداة) */
label.arb-wb-tool{
    display:inline-flex !important;align-items:center;justify-content:center;
    width:40px;height:40px;flex:0 0 auto;box-sizing:border-box;position:relative;overflow:hidden;
}

/* ==========================================================================
   السبب الحقيقي لمشكلة "زرار الصورة بيغطي على باقي الأزرار":
   الثيم فيه Bootstrap، وBootstrap بيحط قاعدة input[type="file"]{display:block}.
   القاعدة دي مكتوبة في ملف CSS من عند المطوّر (author stylesheet)، وده بيخليها
   "تكسب" قاعدة المتصفح الافتراضية لـ [hidden] (اللي هي جوة UA stylesheet)
   بغض النظر عن الـ specificity. النتيجة: خانة رفع الملف الأصلية بكل شكلها
   ("Choose File / No file chosen") كانت بتظهر فعليًا وتاخد مساحتها الحقيقية
   فوق باقي الأزرار.
   الحل: نفرض display:none بقوة أعلى (!important) على أي input[type=file] جوة
   السبورة، وكمان نصفّرله المساحة والظهور من كل الاتجاهات كخط دفاع تاني.
   ========================================================================== */
.arb-board-pro input[type="file"]{
    display:none !important;
    position:absolute !important;
    width:0 !important;height:0 !important;
    opacity:0 !important;overflow:hidden !important;
    pointer-events:none !important;
}
@media(max-width:600px){
    label.arb-wb-tool{width:36px;height:36px;}
}
