/* ===================================================
   LH MAIL - TEMA COMPLETO OFICIAL LH MÍDIA
   Primary: #50c879 | Secondary: #242525
   =================================================== */

/* 1. BARRA LATERAL ESQUERDA (TASKMENU) */
#layout-menu {
    background-color: #242525 !important;
}
#layout-menu .list-group-item.selected,
#layout-menu .list-group-item:hover {
    background-color: #1a1a1a !important;
}
#layout-menu .list-group-item.action-selected,
#layout-menu .list-group-item.active,
#layout-menu .list-group-item.selected a,
#layout-menu .list-group-item:hover a {
    color: #50c879 !important;
}

/* 2. BOTÕES PRINCIPAIS E AÇÕES */
.btn-primary, 
.btn.btn-primary, 
button.btn-primary,
.button.primary,
#layout-menu .special-buttons .btn,
.btn-primary:not(:disabled):not(.disabled) {
    background-color: #50c879 !important;
    border-color: #50c879 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(80, 200, 121, 0.3) !important;
}
.btn-primary:hover, 
.btn-primary:focus,
.btn-primary:active {
    background-color: #42a865 !important;
    border-color: #42a865 !important;
}

/* 3. BOTÕES SWITCH / ATIVAR E DESATIVAR (TOGGLES) */
.custom-switch .custom-control-input:checked ~ .custom-control-label::before,
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #50c879 !important;
    border-color: #50c879 !important;
}
.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(80, 200, 121, 0.25) !important;
}

/* 4. CAMPOS DE INPUT, FOCO E CAMPO "PARA / CC" */
.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus,
.recipient-input:focus-within,
.recipient-input.focus,
.recipient-input.form-control:focus {
    border-color: #50c879 !important;
    box-shadow: 0 0 0 0.2rem rgba(80, 200, 121, 0.25) !important;
    outline: none !important;
}

/* Tags/Badges no campo "Para" */
.recipient-input .recipient {
    background-color: #eafaf0 !important;
    border-color: #50c879 !important;
    color: #242525 !important;
}

/* 5. CHECKBOXES E RADIOS */
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before,
input[type="checkbox"]:checked {
    background-color: #50c879 !important;
    border-color: #50c879 !important;
}

/* 6. BARRAS DE ROLAGEM (SCROLLBARS) */
/* Firefox */
* {
    scrollbar-color: #50c879 #1f2020 !important;
}
/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}
::-webkit-scrollbar-track {
    background: #181919 !important;
}
::-webkit-scrollbar-thumb {
    background-color: #50c879 !important;
    border-radius: 4px !important;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #42a865 !important;
}

/* 7. E-MAIL SELECIONADO NA LISTA */
.listing tbody tr.selected td,
.listing li.selected,
.messagelist tr.selected td,
.messagelist tr.selected {
    background-color: #eafaf0 !important;
    color: #111827 !important;
}
.messagelist tr.selected td a,
.messagelist tr.selected td span {
    color: #111827 !important;
}

/* 8. LINKS, BADGES E CONTADORES (E-MAILS NÃO LIDOS) */
a, .text-primary, .badge-primary {
    color: #50c879 !important;
}

/* Balãozinho de contagem de e-mails não lidos (Tema Claro e Escuro) */
.badge-primary, 
.badge.unread, 
.count, 
.badge.badge-primary,
.folder-list .unreadcount,
.treelist li a .badge,
.listing li .badge,
.list-group-item .badge,
span.unread,
span.count,
.unread > a > .badge,
#layout-sidebar .badge {
    background-color: #50c879 !important;
    background: #50c879 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

/* 9. BARRA DE COTA DE DISCO */
.quota-widget .bar,
.quota-info .progress-bar {
    background-color: #50c879 !important;
}

/* 10. MENUS DROPDOWN (HOVER) */
.dropdown-item:hover, 
.dropdown-item:focus,
.menu a:hover {
    background-color: #50c879 !important;
    color: #ffffff !important;
}

/* 11. OCULTA RODAPÉ PADRÃO NO LOGIN */
#login-footer {
    display: none !important;
}

/* CONTADOR DE E-MAILS NÃO LIDOS (CLASSE EXATA DO F12) */
.unreadcount,
span.unreadcount,
a > .unreadcount,
.unreadcount.skip-content,
.badge.unreadcount {
    background-color: #50c879 !important;
    background: #50c879 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}