/* ============================================================
   Bug Reporting Module — widget styles (isolated, all selectors
   prefixed with .brw- so nothing collides with existing CSS)
============================================================ */

/* Floating action button */
.brw-fab{position:fixed;right:22px;bottom:22px;z-index:99990;display:inline-flex;align-items:center;gap:9px;background:linear-gradient(135deg,#059669,#047857);color:#fff;border:none;border-radius:50px;padding:13px 22px;font-size:.88rem;font-weight:700;font-family:Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 10px 30px rgba(5,150,105,.4);transition:transform .18s,box-shadow .18s}
.brw-fab:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(5,150,105,.5)}
.brw-fab i{font-size:1.05rem}
@media (max-width:640px){.brw-fab span{display:none}.brw-fab{padding:14px 16px;border-radius:50%}}

/* Overlay + modal shell */
.brw-overlay{position:fixed;inset:0;z-index:99995;background:rgba(2,6,17,.72);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:18px;opacity:0;transition:opacity .2s}
.brw-overlay.brw-show{opacity:1}
.brw-modal{background:#0f172a;border:1px solid #334155;border-radius:18px;width:100%;max-width:640px;max-height:92vh;display:flex;flex-direction:column;box-shadow:0 30px 80px rgba(0,0,0,.55);transform:translateY(14px);transition:transform .2s;font-family:Inter,system-ui,sans-serif}
.brw-overlay.brw-show .brw-modal{transform:translateY(0)}
.brw-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #1e293b;flex-shrink:0}
.brw-head-title{display:flex;align-items:center;gap:11px;color:#f1f5f9;font-weight:700;font-size:1rem}
.brw-head-title .brw-bug-ico{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#059669,#047857);display:flex;align-items:center;justify-content:center;font-size:1.1rem;color:#fff}
.brw-head-sub{color:#64748b;font-size:.76rem;font-weight:400;margin-top:2px}
.brw-close{background:none;border:none;color:#64748b;font-size:1.35rem;cursor:pointer;line-height:1;padding:4px}
.brw-close:hover{color:#f1f5f9}
.brw-body{padding:22px 24px;overflow-y:auto;flex:1}
.brw-body::-webkit-scrollbar{width:5px}
.brw-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:10px}

/* Sections + fields */
.brw-section-label{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#475569;margin:20px 0 12px}
.brw-section-label:first-child{margin-top:0}
.brw-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.brw-grid{grid-template-columns:1fr}}
.brw-field{margin-bottom:12px}
.brw-label{display:block;color:#cbd5e1;font-size:.8rem;font-weight:600;margin-bottom:6px}
.brw-label .brw-req{color:#f87171}
.brw-input,.brw-select,.brw-textarea{width:100%;background:#0c0d0e;border:1px solid #334155;border-radius:9px;padding:10px 12px;color:#f1f5f9;font-size:.86rem;outline:none;box-sizing:border-box;font-family:inherit;transition:border-color .15s}
.brw-input:focus,.brw-select:focus,.brw-textarea:focus{border-color:#059669}
.brw-textarea{resize:vertical;min-height:110px;line-height:1.6}
.brw-hint{color:#475569;font-size:.72rem;margin-top:5px;display:flex;justify-content:space-between}
.brw-env{display:flex;flex-wrap:wrap;gap:8px}
.brw-env-chip{display:inline-flex;align-items:center;gap:6px;background:#181a1e;border:1px solid #1e293b;border-radius:7px;padding:6px 11px;font-size:.74rem;color:#94a3b8}
.brw-env-chip i{color:#34d399;font-size:.8rem}

/* Drag & drop uploader */
.brw-drop{border:2px dashed #334155;border-radius:12px;padding:24px;text-align:center;color:#64748b;font-size:.83rem;cursor:pointer;transition:border-color .15s,background .15s}
.brw-drop:hover,.brw-drop.brw-drag{border-color:#059669;background:rgba(5,150,105,.05);color:#94a3b8}
.brw-drop i{font-size:1.6rem;display:block;margin-bottom:8px;color:#475569}
.brw-previews{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.brw-thumb{position:relative;width:86px}
.brw-thumb img{width:86px;height:64px;object-fit:cover;border-radius:8px;border:1px solid #334155;display:block}
.brw-thumb-size{font-size:.64rem;color:#64748b;text-align:center;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brw-thumb-x{position:absolute;top:-7px;right:-7px;width:20px;height:20px;border-radius:50%;background:#dc2626;color:#fff;border:none;font-size:.7rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}

/* Checkboxes */
.brw-check{display:flex;align-items:flex-start;gap:9px;margin-bottom:9px;color:#cbd5e1;font-size:.82rem;cursor:pointer}
.brw-check input{margin-top:2px;accent-color:#059669;flex-shrink:0}

/* Footer + submit */
.brw-foot{padding:16px 24px;border-top:1px solid #1e293b;flex-shrink:0}
.brw-submit{width:100%;background:linear-gradient(135deg,#059669,#047857);color:#fff;border:none;border-radius:10px;padding:13px;font-weight:700;font-size:.9rem;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:9px;transition:opacity .15s}
.brw-submit:disabled{opacity:.6;cursor:not-allowed}
.brw-progress{height:4px;background:#1e293b;border-radius:4px;overflow:hidden;margin-bottom:12px;display:none}
.brw-progress-fill{height:100%;width:0;background:linear-gradient(90deg,#059669,#047857);transition:width .2s}
.brw-error{display:none;background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.3);color:#fca5a5;border-radius:9px;padding:10px 13px;font-size:.8rem;margin-bottom:12px}
.brw-spin{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:brwspin .7s linear infinite}
@keyframes brwspin{to{transform:rotate(360deg)}}

/* Success screen */
.brw-success{text-align:center;padding:44px 30px}
.brw-success-ico{width:70px;height:70px;border-radius:50%;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.3);display:flex;align-items:center;justify-content:center;color:#4ade80;font-size:2rem;margin:0 auto 20px}
.brw-success h3{color:#f1f5f9;font-size:1.25rem;font-weight:800;margin:0 0 8px}
.brw-success p{color:#94a3b8;font-size:.88rem;margin:0 0 22px;line-height:1.7}
.brw-bugid{display:inline-block;background:#0c0d0e;border:1px solid #334155;border-radius:9px;padding:10px 22px;color:#34d399;font-family:monospace;font-size:1rem;font-weight:700;letter-spacing:.04em;margin-bottom:24px}
.brw-success-close{background:#1e293b;border:1px solid #334155;color:#e2e8f0;border-radius:9px;padding:10px 30px;font-weight:600;font-size:.86rem;cursor:pointer;font-family:inherit}
.brw-success-close:hover{background:#23262b}

/* Toast */
.brw-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#dc2626;color:#fff;padding:10px 18px;border-radius:9px;font-weight:600;font-size:.84rem;z-index:99999;font-family:Inter,system-ui,sans-serif}
