/* ============================================
   MODO DE EDIÇÃO INLINE (somente para admin logado)
   ============================================ */

#icc-toggle-edicao {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, transform .15s;
}
#icc-toggle-edicao:hover { transform: translateY(-2px); }
#icc-toggle-edicao.ativo { background: #F39C12; }

body.icc-modo-edicao .c-editavel {
    outline: 1.5px dashed rgba(26,115,232,.55);
    outline-offset: 3px;
    border-radius: 3px;
    cursor: text;
    transition: background .15s, outline-color .15s;
}
body.icc-modo-edicao .c-editavel:hover {
    background: rgba(26,115,232,.08);
    outline-color: #1a73e8;
}
body.icc-modo-edicao .c-editavel:focus {
    background: rgba(26,115,232,.12);
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
}

#icc-toast {
    position: fixed;
    right: 20px;
    bottom: 78px;
    z-index: 100000;
    background: #212529;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
#icc-toast.mostrar { opacity: 1; transform: translateY(0); }
#icc-toast.icc-toast-erro { background: #c0392b; }

/* ---- Troca de ícone por imagem ---- */
.c-icone-botao,
.c-icone-restaurar,
.c-imagem-botao {
    display: none;
}
body.icc-modo-edicao .c-icone-wrap {
    outline: 1.5px dashed rgba(26,115,232,.55);
    outline-offset: 2px;
    cursor: pointer;
}
body.icc-modo-edicao .c-icone-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    z-index: 5;
}
body.icc-modo-edicao .c-icone-botao:hover { background: #0f5bc9; }
body.icc-modo-edicao .c-icone-restaurar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #6c757d;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    z-index: 5;
}
body.icc-modo-edicao .c-icone-restaurar:hover { background: #495057; }

.c-imagem-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.c-imagem-wrap img { display: block; max-width: 100%; }
body.icc-modo-edicao .c-imagem-wrap {
    cursor: pointer;
    outline: 1.5px dashed rgba(26,115,232,.55);
    outline-offset: 3px;
    border-radius: 4px;
}
body.icc-modo-edicao .c-imagem-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .15s;
    text-align: center;
    padding: 6px;
}
body.icc-modo-edicao .c-imagem-wrap:hover .c-imagem-botao { opacity: 1; }

.icc-salvando { opacity: .55; }
