/* ── Site Feedback Widget ── */
#sfw-bubble {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Butonul mic (strâns) ── */
#sfw-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #185FA5;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(24,95,165,.35);
    transition: transform .2s, background .2s;
    margin-left: auto;
}
#sfw-toggle:hover { transform: scale(1.1); background: #0c447c; }

/* ── Panoul de feedback ── */
#sfw-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    padding: 20px 22px 18px;
    width: 280px;
    margin-bottom: 10px;
    animation: sfwFadeIn .25s ease;
    border: 1px solid #e5e7eb;
}
#sfw-panel.sfw-hidden { display: none; }

@keyframes sfwFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

#sfw-panel h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.4;
}

/* ── Emoji buttons ── */
.sfw-emojis {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}
.sfw-emoji-btn {
    flex: 1;
    background: #f9fafb;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 8px 4px 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 26px;
    transition: border-color .15s, background .15s, transform .15s;
}
.sfw-emoji-btn:hover  { background: #eef3fb; transform: scale(1.08); }
.sfw-emoji-btn.active { border-color: #185FA5; background: #eef3fb; }

/* ── Labels sub emoji ── */
.sfw-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 14px;
    padding: 0 2px;
}

/* ── Submit button ── */
#sfw-submit {
    width: 100%;
    padding: 10px;
    background: #185FA5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    display: none;
}
#sfw-submit:hover   { background: #0c447c; }
#sfw-submit.visible { display: block; }

/* ── Mesaj mulțumire ── */
#sfw-thanks {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1D9E75;
    padding: 8px 0 4px;
    display: none;
}

/* ── Notif badge pe buton ── */
#sfw-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    background: #e24b4a;
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
}
#sfw-badge.visible { display: block; }

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
    #sfw-panel { background: #1e2630; border-color: #374151; }
    #sfw-panel h3 { color: #f3f4f6; }
    .sfw-emoji-btn { background: #2d3748; }
    .sfw-emoji-btn:hover, .sfw-emoji-btn.active { background: #1e3a5f; }
}

/* ── Mobile ── */
@media (max-width: 480px) {
    #sfw-bubble { bottom: 80px; right: 10px; }
    #sfw-panel  { width: 260px; }
}
