/* ══════════════════════════════════════════════════════════════
   Beta Feedback Mode — Styles
   ══════════════════════════════════════════════════════════════ */

/* ── Feedback Button (nav bar) ── */
.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    font-size: .72rem;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.3);
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    margin-right: .5rem;
}
.fb-btn:hover {
    background: rgba(245,158,11,.18);
    border-color: rgba(245,158,11,.5);
}
.fb-btn svg { flex-shrink: 0; }
.fb-btn .fb-badge {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #f59e0b;
    color: #fff;
    padding: .1rem .35rem;
    border-radius: 999px;
    line-height: 1;
}

/* ── Overlay (dims page) ── */
.fb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,.08);
    pointer-events: none;
}
.fb-overlay.active { display: block; }

/* ── Drawing Canvas ── */
.fb-canvas {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    cursor: crosshair;
}
.fb-canvas.active { display: block; }

/* ── Toolbar ── */
.fb-toolbar {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    background: #1e293b;
    border-radius: 0 0 .75rem .75rem;
    padding: .5rem .75rem;
    gap: .35rem;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.fb-toolbar.active { display: flex; }

.fb-toolbar .fb-sep {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,.15);
    margin: 0 .25rem;
}

/* Tool buttons */
.fb-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: .4rem;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all .12s;
    padding: 0;
}
.fb-tool:hover { background: rgba(255,255,255,.1); color: #e2e8f0; }
.fb-tool.active { background: rgba(59,130,246,.3); color: #60a5fa; }
.fb-tool svg { width: 18px; height: 18px; }

/* Color swatches */
.fb-color {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .12s;
    padding: 0;
}
.fb-color:hover { border-color: rgba(255,255,255,.4); }
.fb-color.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }

/* Action buttons (submit/cancel) */
.fb-action {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .7rem;
    font-size: .72rem;
    font-weight: 600;
    border: none;
    border-radius: .4rem;
    cursor: pointer;
    transition: all .12s;
}
.fb-action-submit {
    background: #3b82f6;
    color: #fff;
}
.fb-action-submit:hover { background: #2563eb; }
.fb-action-cancel {
    background: rgba(255,255,255,.1);
    color: #94a3b8;
}
.fb-action-cancel:hover { background: rgba(255,255,255,.15); color: #e2e8f0; }
.fb-action-undo {
    background: rgba(255,255,255,.08);
    color: #94a3b8;
}
.fb-action-undo:hover { background: rgba(255,255,255,.12); color: #e2e8f0; }

/* ── Text Notes (sticky notes on overlay) ── */
.fb-note {
    position: fixed;
    z-index: 10002;
    min-width: 180px;
    max-width: 300px;
}
.fb-note-input {
    width: 100%;
    min-height: 60px;
    padding: .5rem;
    font-size: .78rem;
    font-family: inherit;
    border: 2px solid #f59e0b;
    border-radius: .4rem;
    background: #fffbeb;
    color: #1e293b;
    resize: both;
    outline: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.fb-note-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,.2), 0 2px 12px rgba(0,0,0,.15);
}
.fb-note-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
}

/* ── Submit Modal ── */
.fb-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10010;
    background: rgba(0,0,0,.5);
    align-items: center;
    justify-content: center;
}
.fb-modal-bg.active { display: flex; }

.fb-modal {
    background: #fff;
    border-radius: .75rem;
    width: 600px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.fb-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fb-modal-header h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.fb-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: .25rem;
}
.fb-modal-body {
    padding: 1.25rem;
}
.fb-modal-preview {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    margin-bottom: 1rem;
    max-height: 300px;
    object-fit: contain;
    background: #f8fafc;
}
.fb-modal-label {
    font-size: .78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: .35rem;
    display: block;
}
.fb-modal-textarea {
    width: 100%;
    min-height: 80px;
    padding: .6rem;
    font-size: .82rem;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: .4rem;
    resize: vertical;
    outline: none;
    color: #1e293b;
}
.fb-modal-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.fb-modal-footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}
.fb-modal-btn {
    padding: .45rem 1rem;
    font-size: .78rem;
    font-weight: 600;
    border: none;
    border-radius: .4rem;
    cursor: pointer;
    transition: all .12s;
}
.fb-modal-btn-primary {
    background: #3b82f6;
    color: #fff;
}
.fb-modal-btn-primary:hover { background: #2563eb; }
.fb-modal-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.fb-modal-btn-secondary:hover { background: #e2e8f0; }

/* ── Annotation count badge ── */
.fb-annotation-count {
    font-size: .65rem;
    color: rgba(255,255,255,.5);
    margin-left: .25rem;
}

/* ── Toast ── */
.fb-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 10020;
    background: #1e293b;
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: .5rem;
    font-size: .82rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    transition: transform .3s ease;
    pointer-events: none;
}
.fb-toast.visible {
    transform: translateX(-50%) translateY(0);
}
