/* ============================================================
   DROPDOWN DE NOTIFICAÇÕES — Discord Style
============================================================ */

/* Caixa geral do dropdown */
.notif-dropdown {
    width: 360px !important;
    background: #161616 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 10px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    z-index: 3000 !important;
}

/* Área rolável */
#notifLista {
    max-height: 380px;
    overflow-y: auto;
    padding: 6px 0;
}

/* Scrollbar elegante */
#notifLista::-webkit-scrollbar {
    width: 8px;
}
#notifLista::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
#notifLista::-webkit-scrollbar-track {
    background: transparent;
}

/* ============================================================
   TÍTULOS DE GRUPOS
============================================================ */
.notif-grupo-titulo {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #999;
    padding: 4px 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* ============================================================
   CARTÕES DE NOTIFICAÇÃO — ESTILO DISCORD
============================================================ */
.notif-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    margin: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s;
}

.notif-card:hover {
    background: rgba(255, 255, 255, 0.10);
}

/* Não lida (destacada) */
.notif-nao-lida {
    background: rgba(255, 180, 0, 0.18);
    border-left: 3px solid #ffb400;
}

/* Lida */
.notif-lida {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
}

/* Ícone */
.notif-icon-wrapper {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

/* Texto */
.notif-msg {
    font-size: 0.86rem;
    font-weight: 500;
    color: #f2f2f2;
    line-height: 1.2rem;
}

/* Hora */
.notif-time {
    font-size: 0.7rem;
    color: #bdbdbd;
    margin-top: 3px;
}


/* ============================================================
   ÍCONES COLORIDOS POR TIPO
============================================================ */
.fa-chart-line      { color: #4aa3ff !important; }
.fa-comment-dots    { color: #9e86ff !important; }
.fa-circle-check    { color: #4aff9e !important; }
.fa-rotate-left     { color: #ffdd44 !important; }
.fa-triangle-exclamation { color: #ff6b6b !important; }
.fa-info-circle     { color: #bbbbbb !important; }

/* ============================================================
   Z-INDEX E POSICIONAMENTO
============================================================ */

.navbar-custom {
    z-index: 2000 !important;
}

#notifBtn + .dropdown-menu {
    z-index: 3000 !important;
}

#notifWrapper {
    position: relative;
}

/* ============================================
   HEADER DO DROPDOWN (Notificações + botão)
============================================ */
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    background: transparent;
}

.notif-titulo {
    color: #f1f1f1;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Botão "Marcar todas" — estilo moderno */
.notif-limpar {
    font-size: 0.78rem;
    padding: 4px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    color: #8aff8a;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    user-select: none;
    opacity: 0.5;
}

.notif-limpar:hover {
    background: rgba(255,255,255,0.16);
    color: #aaffaa;
    opacity: 1;
}

.notif-limpar:active {
    background: rgba(255,255,255,0.24);
}

#notifBtn #notifCount {
    top: 10px !important;          /* sobe levemente */
    left: 50% !important;          /* empurra mais para a direita */
    transform: translate(0, -50%) !important; /* mantém alinhado sem jogar muito */
}

#notifWrapper {
    margin-right: 28px;   /* afasta do nome */
}

.logo-sistema {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
  min-width: fit-content;
}

.logo-nav {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-left: 0;
}

.logo-texto {
  color: rgb(136, 140, 140);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  margin-left: 0;
}

.toggle-btn {
  margin-left: 20px;
}

/* ============================================================
   AVATAR DO USUÁRIO — NAVBAR E DROPDOWN
============================================================ */

/* Link que contém o avatar pequeno */
.user-avatar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0 !important;

    overflow: hidden;
    border-radius: 50%;
}

/* Avatar pequeno da navbar */
.user-avatar {
    display: block !important;

    width: 38px !important;
    height: 38px !important;

    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 50% !important;
}

/* Cabeçalho interno do menu do usuário */
.user-menu-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Avatar maior dentro do dropdown */
.user-avatar-menu {
    display: block !important;

    flex: 0 0 48px;

    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    object-fit: cover !important;
    object-position: center !important;

    overflow: hidden;
    border-radius: 50% !important;
}


#sidebar .nav-separator {
    display: flex;
    align-items: center;
    gap: 5px;

    padding-top: 4px;
    padding-bottom: 6px;

    color:rgba(255,255,255,.42)!important;
    opacity: 1 !important;

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#sidebar .nav-separator i {
    color: rgba(255,255,255,.42) !important;
    font-size: 0.78rem;
}

