/* =========================================================================
   ZIZI MESSENGER - CSS NUCLEAR DE PROTEÇÃO MÁXIMA
   ========================================================================= */

.zizi-scroll::-webkit-scrollbar { width: 6px !important; }
.zizi-scroll::-webkit-scrollbar-track { background: transparent !important; }
.zizi-scroll::-webkit-scrollbar-thumb { background-color: #27272a !important; border-radius: 10px !important; }
.zizi-scroll::-webkit-scrollbar-thumb:hover { background-color: #3f3f46 !important; }

/* RESET AGRESSIVO: Esmaga o tema com multiplicador de especificidade (:root) */
:root:root:root:root:root body .zizi-shield *, 
:root:root:root:root:root body .zizi-shield {
    box-sizing: border-box !important;
}

/* -------------------------------------------------------------
   0. NEUTRALIZA O TOTAL DE BOTÕES DO TEMA
------------------------------------------------------------- */
:root:root:root:root:root body .zizi-shield button,
:root:root:root:root:root body .zizi-shield button[type="button"],
:root:root:root:root:root body .zizi-shield button[type="submit"] {
    border: 0px solid transparent !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    text-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Proteção estrutural dos SVGs */
:root:root:root:root:root body .zizi-shield svg {
    display: block !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* -------------------------------------------------------------
   1. CAMPOS DE TEXTO (Inputs)
------------------------------------------------------------- */
:root:root:root:root:root body .zizi-shield input.zizi-input,
:root:root:root:root:root body .zizi-shield input[type="text"].zizi-input,
:root:root:root:root:root body .zizi-shield input[type="password"].zizi-input {
    background-color: #18181b !important;
    border: 1px solid #27272a !important;
    border-color: #27272a !important;
    border-radius: 0.75rem !important;
    color: #e4e4e7 !important;
    padding: 0.875rem !important;
    font-size: 0.875rem !important;
    box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05) !important;
    outline: none !important;
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    margin: 0 !important;
}

:root:root:root:root:root body .zizi-shield input.zizi-input:focus {
    border-color: #009ee3 !important;
}

:root:root:root:root:root body .zizi-shield input.zizi-chat-input {
    background-color: #09090b !important;
    padding: 0.625rem 1rem !important;
    border-radius: 1.5rem !important;
}

/* -------------------------------------------------------------
   2. BOTÕES REDONDOS (Voltar, Menu, Anexo, Emojis)
------------------------------------------------------------- */
:root:root:root:root:root body .zizi-shield button.zizi-icon-btn {
    background-color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.25rem !important; 
    height: 2.25rem !important; 
    border-radius: 9999px !important; 
    color: #a1a1aa !important; 
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-icon-btn:hover {
    color: #ffffff !important;
    background-color: #27272a !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-icon-btn.hover-blue:hover {
    color: #009ee3 !important; 
    background-color: #18181b !important;
}

/* -------------------------------------------------------------
   3. BOTÕES PRINCIPAIS (Entrar, Enviar Chat)
------------------------------------------------------------- */
:root:root:root:root:root body .zizi-shield button.zizi-primary-btn {
    background-color: #009ee3 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 0.75rem !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-primary-btn:hover {
    background-color: #007baf !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-login-btn {
    width: 100% !important;
    padding: 0.875rem 0 !important; 
    text-transform: uppercase !important;
    font-size: 0.75rem !important; 
    letter-spacing: 0.1em !important;
    margin-top: 0.5rem !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-send-btn {
    width: 2.75rem !important; 
    height: 2.75rem !important; 
    flex-shrink: 0 !important;
    border-radius: 9999px !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-send-btn svg {
    transform: translate(1px, 1px) !important;
}

/* -------------------------------------------------------------
   4. BOTÃO SAIR (Header) E TOGGLE CADASTRO
------------------------------------------------------------- */
:root:root:root:root:root body .zizi-shield button.zizi-logout-btn {
    background-color: transparent !important;
    color: #a1a1aa !important; 
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 0.625rem !important; 
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-logout-btn:hover {
    color: #f43f5e !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-toggle-btn {
    background-color: transparent !important;
    color: #71717a !important; 
    text-transform: uppercase !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-toggle-btn:hover {
    color: #009ee3 !important;
}

/* -------------------------------------------------------------
   5. BOTÕES DO MENU DE CONFIGURAÇÃO
------------------------------------------------------------- */
:root:root:root:root:root body .zizi-shield button.zizi-menu-btn {
    background-color: transparent !important;
    border-bottom: 1px solid #27272a !important;
    border-color: #27272a !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #e4e4e7 !important; 
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    border-radius: 0 !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-menu-btn:hover {
    background-color: #27272a !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-menu-btn-danger {
    color: #f43f5e !important; 
    border-bottom: none !important;
    border-color: transparent !important;
}

/* -------------------------------------------------------------
   6. BOTÕES DA LISTA DE CONTATOS
------------------------------------------------------------- */
:root:root:root:root:root body .zizi-shield button.zizi-contact-btn {
    background-color: #18181b !important;
    border: 1px solid #27272a !important;
    border-color: #27272a !important;
    border-radius: 0.75rem !important;
    width: 100% !important;
    text-align: left !important;
    padding: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    color: inherit !important;
    margin: 0 0 0.5rem 0 !important;
    transition: all 0.2s !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-contact-btn:hover {
    border-color: rgba(0, 158, 227, 0.5) !important; 
    background-color: #27272a !important;
}

:root:root:root:root:root body .zizi-shield .zizi-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.5rem !important; 
    height: 2.5rem !important;
    border-radius: 9999px !important;
    border: 1px solid transparent !important;
    flex-shrink: 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* -------------------------------------------------------------
   7. BOTÕES DE EMOJI
------------------------------------------------------------- */
:root:root:root:root:root body .zizi-shield button.zizi-emoji-btn {
    background-color: transparent !important;
    font-size: 1.25rem !important;
    padding: 0.25rem !important;
    border-radius: 0.25rem !important;
    cursor: pointer !important;
    transition: transform 0.2s, background-color 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-emoji-btn:hover {
    transform: scale(1.25) !important;
    background-color: #27272a !important;
}

/* -------------------------------------------------------------
   8. BOTÕES DO MODAL (Trocar Senha)
------------------------------------------------------------- */
:root:root:root:root:root body .zizi-shield button.zizi-modal-btn {
    flex: 1 !important; 
    border-radius: 0.75rem !important; 
    padding: 0.875rem !important; 
    font-weight: 700 !important; 
    cursor: pointer !important; 
    text-transform: uppercase !important; 
    font-size: 0.75rem !important;
    text-align: center !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-modal-btn-cancel {
    background-color: transparent !important; 
    color: #a1a1aa !important; 
    border: 1px solid #27272a !important; 
    border-color: #27272a !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-modal-btn-cancel:hover {
    background-color: #27272a !important;
}

:root:root:root:root:root body .zizi-shield button.zizi-modal-btn-save {
    background-color: #009ee3 !important; 
    color: #ffffff !important; 
}

:root:root:root:root:root body .zizi-shield button.zizi-modal-btn-save:hover {
    background-color: #007baf !important; 
}