/* ========================================
   MELHORIAS NO PAINEL DE NOTIFICAÇÕES
   ======================================== */

/* Melhorar o header das notificações */
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139,92,246,.05) 100%);
}

.notification-header h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin: 0;
}

/* Melhorar os botões de ação */
.notification-header button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: all .2s ease;
    padding: 8px 14px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.notification-header button:hover {
    background: rgba(139,92,246,.15);
    color: var(--accent);
    transform: translateY(-1px);
}

/* Botão "Marcar lidas" com destaque */
.notification-header button:first-of-type {
    color: var(--accent);
    font-weight: 700;
}

.notification-header button:first-of-type:hover {
    background: rgba(139,92,246,.2);
}

/* Botão "Limpar" com cor de perigo */
.notification-header button:nth-of-type(2) {
    border: 1.5px solid rgba(239,68,68,.4);
    color: var(--danger);
    background: rgba(239,68,68,.05);
}

.notification-header button:nth-of-type(2):hover {
    border-color: var(--danger);
    background: rgba(239,68,68,.15);
    color: var(--danger);
}

/* Botão fechar */
.notification-header button:last-child {
    color: var(--text-secondary);
    padding: 6px 10px;
}

.notification-header button:last-child:hover {
    color: var(--danger);
    background: rgba(239,68,68,.1);
}

/* Melhorar os itens de notificação */
.notification-item {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid transparent;
    background: var(--bg-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-item:hover {
    background: var(--bg-input);
    border-color: rgba(139,92,246,.2);
    transform: translateX(2px);
}

.notification-item.unread {
    background: var(--accent-light);
    border-color: rgba(139,92,246,.3);
    box-shadow: 0 0 0 1px rgba(139,92,246,.1);
}

.notification-item.unread:hover {
    box-shadow: 0 0 0 1px rgba(139,92,246,.2), 0 4px 12px rgba(139,92,246,.1);
}

/* Conteúdo da notificação */
.notif-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notif-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.3;
}

.notification-item .notif-msg {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-item .notif-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Botões de ação dentro do item */
.notif-read-btn,
.notif-delete-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all .2s ease;
    white-space: nowrap;
}

.notif-read-btn {
    color: var(--success);
    border-color: rgba(16,185,129,.3);
    background: rgba(16,185,129,.05);
}

.notif-read-btn:hover {
    background: rgba(16,185,129,.15);
    border-color: var(--success);
    color: var(--success);
}

.notif-delete-btn {
    color: var(--danger);
    border-color: rgba(239,68,68,.3);
    background: rgba(239,68,68,.05);
    padding: 6px 10px;
    font-size: 16px;
    font-weight: 700;
}

.notif-delete-btn:hover {
    background: rgba(239,68,68,.15);
    border-color: var(--danger);
    color: var(--danger);
}

/* Lista de notificações */
.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Scrollbar customizada */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(139,92,246,.3);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(139,92,246,.5);
}

/* Estado vazio */
.notification-list .empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* Painel de notificações */
.notification-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 3000;
    transition: right .3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.notification-panel.open {
    right: 0;
}

/* Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 2999;
    display: none;
    animation: fadeIn .2s ease;
}

.notification-overlay.open {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .notification-panel {
        width: 100%;
        right: -100%;
    }

    .notification-header {
        padding: 16px;
    }

    .notification-header h3 {
        font-size: 16px;
    }

    .notification-header button {
        font-size: 12px;
        padding: 6px 10px;
    }

    .notification-item {
        padding: 14px;
        margin-bottom: 8px;
    }

    .notification-item .notif-title {
        font-size: 14px;
    }

    .notification-item .notif-msg {
        font-size: 13px;
    }
}
