/* Frontend Notification Styles */

#np-notification-container,
#np-notification-container-preview {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

#np-notification-container.bottom-left,
#np-notification-container-preview.bottom-left {
    bottom: 20px;
    left: 20px;
}

#np-notification-container.bottom-right,
#np-notification-container-preview.bottom-right {
    bottom: 20px;
    right: 20px;
}

#np-notification-container.top-left,
#np-notification-container-preview.top-left {
    top: 20px;
    left: 20px;
}

#np-notification-container.top-right,
#np-notification-container-preview.top-right {
    top: 20px;
    right: 20px;
}

.np-notification {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
    border-left: 4px solid #667eea;
}

.np-notification:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.np-notification.removing {
    animation: fadeOutDown 0.5s ease forwards;
}

.np-notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.np-notification-avatar i {
    display: inline-block !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    speak: none;
    width: auto !important;
    height: auto !important;
    vertical-align: middle !important;
}

/* Garante que os ícones Font Awesome sejam renderizados corretamente */
.np-notification-avatar i.fa-venus:before,
.np-notification-avatar i.fa-mars:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
}

.np-notification-avatar i.fa-venus:before {
    content: "\f221" !important;
}

.np-notification-avatar i.fa-mars:before {
    content: "\f222" !important;
}

.np-notification-avatar.female {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
}

.np-notification-content {
    flex: 1;
    min-width: 0;
}

.np-notification-name {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.np-notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.np-notification-time {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

.np-notification-lgpd-wrapper {
    text-align: center;
    margin-top: 12px;
}

.np-notification-lgpd {
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 0.2px;
    white-space: nowrap;
    /* Cores definidas via inline style para permitir customização */
}

.np-notification-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0;
}

.np-notification:hover .np-notification-close {
    opacity: 1;
}

.np-notification-close:hover {
    background: #e74c3c;
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    #np-notification-container,
    #np-notification-container-preview {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        top: auto !important;
    }
    
    .np-notification {
        min-width: auto;
        max-width: 100%;
        padding: 14px 16px;
    }
    
    .np-notification-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .np-notification-name {
        font-size: 14px;
    }
    
    .np-notification-message {
        font-size: 12px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .np-notification {
        background: #2d2d2d;
        border-left-color: #667eea;
    }
    
    .np-notification-name {
        color: #fff;
    }
    
    .np-notification-message {
        color: #ccc;
    }
    
    .np-notification-time {
        color: #999;
    }
    
    .np-notification-close {
        background: #444;
        color: #ccc;
    }
}

/* Print styles */
@media print {
    #np-notification-container,
    #np-notification-container-preview {
        display: none !important;
    }
}
