/*
CAMINHO COMPLETO: C:\Users\vlula\OneDrive\Área de Trabalho\Projetos Backup\NETTSAN_CHAT\static\css\visual_channels.css
DATA E HORA DO ULTIMO RECODE: 2026-09-07 06:25 -03:00
MOTIVO DA ALTERACAO: Aplicar a logo oficial NETTCONNECT e tornar WhatsApp, Instagram e Facebook visualmente reconheciveis e mais didaticos em todas as telas.
*/

/* Logo oficial */
.brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    box-shadow:
        0 8px 22px rgba(3, 117, 255, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.10);
}

.brand-public .brand-logo {
    box-shadow:
        0 8px 20px rgba(3, 117, 255, 0.16),
        0 0 0 1px rgba(11, 23, 54, 0.06);
}

/* Canais: badges grandes e pequenos */
.channel-badge {
    overflow: hidden;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    color: transparent !important;
    font-size: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.58);
}

.channel-badge.whatsapp {
    background-image: url("../img/channels/whatsapp.svg") !important;
}

.channel-badge.instagram {
    background-image: url("../img/channels/instagram.svg") !important;
}

.channel-badge.facebook {
    background-image: url("../img/channels/facebook.svg") !important;
}

/* Cards e chamadas do dashboard */
.preview-row:first-child .preview-avatar {
    background-image: url("../img/channels/whatsapp.svg") !important;
}

.preview-avatar.instagram-bg {
    background-image: url("../img/channels/instagram.svg") !important;
}

.preview-avatar.facebook-bg {
    background-image: url("../img/channels/facebook.svg") !important;
}

.preview-avatar {
    overflow: hidden;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    color: transparent !important;
    font-size: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 6px 16px rgba(11, 23, 54, 0.10);
}

.connected-channel-card {
    border-color: #dce7f3;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.connected-channel-card:hover {
    border-color: #cbdced;
    box-shadow: 0 9px 24px rgba(11, 23, 54, 0.06);
}

/* Filtros: sai a bolinha generica e entra o simbolo do canal */
.mini-channel {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px;
    border-radius: 6px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    box-shadow: 0 2px 6px rgba(11, 23, 54, 0.08);
}

.mini-channel.whatsapp {
    background-image: url("../img/channels/whatsapp.svg") !important;
}

.mini-channel.instagram {
    background-image: url("../img/channels/instagram.svg") !important;
}

.mini-channel.facebook {
    background-image: url("../img/channels/facebook.svg") !important;
}

.conversation-tab {
    min-height: 35px;
    padding-inline: 11px;
    gap: 7px;
    border-radius: 10px;
}

/* Pills da Central de Conversas */
.page-channel-pills span {
    min-height: 38px;
    padding: 0 12px;
    gap: 7px;
    border-radius: 11px;
    background: #ffffff;
}

.wa-dot,
.ig-dot,
.fb-dot {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px;
    display: inline-block;
    border-radius: 6px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    box-shadow: 0 2px 6px rgba(11, 23, 54, 0.08);
}

.wa-dot {
    background-image: url("../img/channels/whatsapp.svg") !important;
    background-color: transparent !important;
}

.ig-dot {
    background-image: url("../img/channels/instagram.svg") !important;
    background-color: transparent !important;
}

.fb-dot {
    background-image: url("../img/channels/facebook.svg") !important;
    background-color: transparent !important;
}

/* Inbox: contato continua com inicial, canal aparece como selo */
.inbox-avatar {
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #e9f4ff, #d7eaff) !important;
    color: #165aab !important;
    border: 1px solid #d4e5f7;
}

.inbox-avatar.instagram,
.inbox-avatar.facebook,
.inbox-avatar.whatsapp {
    background: linear-gradient(135deg, #e9f4ff, #d7eaff) !important;
    color: #165aab !important;
}

.inbox-avatar::after {
    content: "";
    width: 15px;
    height: 15px;
    position: absolute;
    right: -3px;
    bottom: -2px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 2px 5px rgba(11, 23, 54, 0.14);
}

.inbox-avatar.whatsapp::after {
    background-image: url("../img/channels/whatsapp.svg");
}

.inbox-avatar.instagram::after {
    background-image: url("../img/channels/instagram.svg");
}

.inbox-avatar.facebook::after {
    background-image: url("../img/channels/facebook.svg");
}

.inbox-avatar.large::after {
    width: 17px;
    height: 17px;
    right: -2px;
    bottom: -2px;
}

/* Deixa o canal escrito na lista mais parecido com etiqueta de contexto */
.inbox-conversation-item > small {
    padding: 4px 7px;
    border: 1px solid #e5ebf2;
    border-radius: 999px;
    background: #f8fafc;
    color: #718096;
    font-weight: 750;
}

/* Portais e estados vazios herdam os logos dos canais */
.empty-channel-stack .channel-badge {
    box-shadow: 0 6px 16px rgba(11, 23, 54, 0.10);
}

/* Desktop compacto: garante que a nova logo continue centralizada */
@media (max-width: 1180px) and (min-width: 821px) {
    .sidebar:not(:hover):not(:focus-within) .brand {
        justify-content: center;
    }

    .sidebar:not(:hover):not(:focus-within) .brand-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

@media (max-width: 820px) {
    .brand-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
    }

    .page-channel-pills {
        gap: 6px;
    }

    .page-channel-pills span {
        min-height: 34px;
        padding-inline: 9px;
        font-size: 10px;
    }
}
