/* Estilos Globais para o Sistema de Notificações */
.notification-bell-container {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    z-index: 1000;
}

.notification-bell-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #731aa7; /* roxo da plataforma */
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.notification-bell-btn:hover {
    background: #f1f3f5;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.notification-bell-btn:active {
    transform: translateY(0);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4757;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #0f0a1c; /* Ajusta com o background escuro da plataforma */
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Dropdown Container */
.notifications-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    width: 340px;
    max-height: 480px;
    background: rgba(18, 12, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notifications-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.notifications-header h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notifications-header .mark-all-btn {
    background: none;
    border: none;
    color: #a55eea;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notifications-header .mark-all-btn:hover {
    color: #c084fc;
    background: rgba(165, 94, 234, 0.1);
}

/* Notificações List */
.notifications-list {
    overflow-y: auto;
    flex-grow: 1;
    max-height: 380px;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}
.notifications-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Item */
.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notification-item.unread {
    background: rgba(165, 94, 234, 0.06);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4757;
}

/* Icons */
.notification-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Temas por tipo */
.notification-item.trade .notification-icon-wrapper { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.notification-item.sale .notification-icon-wrapper { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.notification-item.pack .notification-icon-wrapper { background: rgba(230, 126, 34, 0.15); color: #e67e22; }
.notification-item.spin .notification-icon-wrapper { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }
.notification-item.admin .notification-icon-wrapper { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.2;
}

.notification-msg {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
    line-height: 1.35;
}

.notification-time {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    display: block;
}

.notifications-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.notifications-empty-state i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notifications-empty-state p {
    font-size: 0.82rem;
    margin: 0;
}

/* Ajustes responsivos */
@media (max-width: 576px) {
    .notifications-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-height: 80vh;
    }
}
