/* =========================================
   Arquivo: filex/css/notificacoes.css
   XONA — NOTIFICAÇÕES
   Requer main.css carregado antes.
   ========================================= */

/* =========================================
   BODY — sem sidebar direita
   ========================================= */
body.notifications-body .main-content {
    margin-right: 0 !important;
    max-width: none !important;
}

.notifications-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
    margin-top: 2%;
}

/* =========================================
   TÍTULO + PESQUISA
   ========================================= */
.notifications-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.notifications-title-block h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}
.notifications-title-block p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.notifications-search {
    min-width: 280px;
}

/* =========================================
   AÇÕES RÁPIDAS
   ========================================= */
.notifications-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.notif-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 9px 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.notif-action-btn i { font-size: 13px; }
.notif-action-btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}
.notif-action-btn.danger:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* =========================================
   TABS
   ========================================= */
.notifications-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #30363d transparent;
}
.notifications-tabs::-webkit-scrollbar { height: 4px; }
.notifications-tabs::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 999px;
}

.notif-tab {
    flex-shrink: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.notif-tab:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}
.notif-tab.active {
    background-color: var(--accent-pink);
    border-color: var(--accent-pink);
    color: #fff;
}
.notif-tab-badge {
    background-color: rgba(255, 255, 255, 0.15);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}
.notif-tab.active .notif-tab-badge {
    background-color: rgba(255, 255, 255, 0.3);
}

/* =========================================
   CONTEÚDO
   ========================================= */
.notifications-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.notifications-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.notifications-group.hidden { display: none; }

.notifications-group-header h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding-left: 4px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =========================================
   ITEM DE NOTIFICAÇÃO
   ========================================= */
.notif-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.notif-item:hover {
    border-color: var(--accent-pink);
    transform: translateY(-1px);
}
.notif-item.unread {
    background-color: rgba(240, 36, 110, 0.05);
    border-color: rgba(240, 36, 110, 0.25);
}

/* Avatar + ícone do tipo */
.notif-avatar-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}
.notif-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    background-color: var(--bg-dark);
}
.notif-avatar-wrapper.notif-system {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
}
.notif-type-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    border: 2px solid var(--bg-card);
}
.notif-avatar-wrapper.notif-system .notif-type-icon {
    position: static;
    width: 28px;
    height: 28px;
    font-size: 13px;
    border: none;
}

/* Cores do ícone por tipo */
.icon-pink   { background-color: var(--accent-pink); }
.icon-blue   { background-color: #3b82f6; }
.icon-purple { background-color: #8b5cf6; }
.icon-yellow { background-color: #f59e0b; }
.icon-green  { background-color: #22c55e; }
.icon-teal   { background-color: #14b8a6; }

/* Corpo */
.notif-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.notif-text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary);
    word-wrap: break-word;
}
.notif-name {
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 4px;
}
.notif-action { color: var(--text-secondary); }
.notif-time {
    font-size: 11.5px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.notif-time i { font-size: 10px; }

/* Valor da gorjeta / assinatura */
.notif-amount {
    background-color: rgba(240, 36, 110, 0.1);
    border: 1px solid rgba(240, 36, 110, 0.25);
    color: var(--accent-pink);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.notif-amount i { font-size: 10px; }

/* Preview (imagem) */
.notif-preview {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

/* Menu */
.notif-menu-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.notif-menu-btn:hover {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Pontinho "não lida" */
.notif-dot {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-pink);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(240, 36, 110, 0.15);
}

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 768px) {

    body.notifications-body .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    .notifications-page {
        padding: 0 10px 130px;
        gap: 16px;
    }

    .notifications-top { flex-direction: column; gap: 12px; }
    .notifications-title-block h1 { font-size: 22px; }
    .notifications-title-block p { font-size: 12px; }
    .notifications-search { min-width: 0; width: 100%; padding: 11px 16px; }

    .notifications-actions { gap: 8px; }
    .notif-action-btn {
        flex: 1;
        justify-content: center;
        font-size: 12px;
        padding: 10px 12px;
    }

    .notifications-tabs { padding-bottom: 6px; gap: 6px; }
    .notif-tab { font-size: 12px; padding: 7px 14px; }

    .notif-item {
        padding: 12px 12px;
        gap: 10px;
        border-radius: var(--radius-md);
    }
    .notif-avatar-wrapper,
    .notif-avatar { width: 44px; height: 44px; }
    .notif-avatar-wrapper.notif-system .notif-type-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    .notif-type-icon {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .notif-text { font-size: 13px; }
    .notif-time { font-size: 11px; }

    .notif-preview { width: 40px; height: 40px; }

    .notif-amount {
        font-size: 11px;
        padding: 4px 9px;
    }

    .notif-dot { top: 10px; right: 10px; }
}