/* Área de Notificações */
.notificacoes-area {
    position: relative;
    display: flex;
    align-items: center;
}

.notificacoes-trigger {
    cursor: pointer;
    position: relative;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notificacoes-trigger:hover {
    transform: scale(0.9);
}

.notificacoes-trigger img {
    height: 25px;
    width: 25px;
}

/* Contador de Notificações */
.notificacoes-contador {
    position: absolute;
    top: 2px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    line-height: 12px;
}

/* Dropdown de Notificações */
.notificacoes-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: white;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 999;
    padding: 10px 0;
    border: 1px solid #f0f0f0;
}

.notificacoes-dropdown h4 {
    color: var(--cor-texto-principal);
    font-size: 16px;
    margin: 0 20px 15px;
    padding-top: 15px;
    padding-bottom: 0;
    border-bottom: none;
}

.notificacoes-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.notificacoes-dropdown ul::-webkit-scrollbar {
    width: 6px;
}

.notificacoes-dropdown ul::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.notificacoes-dropdown li {
    padding: 5px 10px;
    border-bottom: 1px solid #f8f8f8;
}

.notificacoes-dropdown li:last-child {
    border-bottom: none;
}

.notificacoes-dropdown a {
    color: var(--cor-texto-principal);
    text-decoration: none;
    display: block;
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 6px;
    background-color: transparent;
}

.notificacoes-dropdown a:hover {
    background-color: var(--azul-selecao);
    color: #ffffff;
    opacity: 1;
}

.notificacoes-dropdown a:hover .notif-titulo,
.notificacoes-dropdown a:hover .notif-msg,
.notificacoes-dropdown a:hover .notif-data {
    color: #ffffff;
}

.notif-titulo {
    font-size: 14px;
}

.notif-msg {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.notif-data {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
    text-align: right;
    transition: color 0.2s ease;
}

.notificacoes-dropdown .ver-todas-notificacoes {
    display: block;
    text-align: center;
    padding: 15px 20px 10px;
    font-size: 13px;
    color: var(--azul-selecao);
    font-weight: bold;
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
    border-radius: 0;
}

.notificacoes-dropdown .ver-todas-notificacoes:hover {
    text-decoration: underline;
    background-color: transparent;
    color: var(--azul-selecao);
    opacity: 0.8;
}

.notificacoes-dropdown.show {
    display: block;
}

@media (max-width: 768px) {
    .notificacoes-dropdown {
        right: 0;
        left: 10px;
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
        position: fixed;
        top: 65px;
    }
}