/**
 * Estilos para Sistema de Notificações Persistentes com Popup
 * @author Sandro Jordão
 */

.notification-popup {
    position: fixed;
    z-index: 99999;
    min-width: 300px;
    max-width: 400px;
    background: white;
    /* border-radius: 8px; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: bottom 0.3s ease, box-shadow 0.2s ease;
    opacity: 1;
    transform: translateY(0);
}

.notification-popup.notification-entering {
    animation: slideInUp 0.35s ease-out;
}

.notification-popup.notification-exiting {
    animation: slideOutDown 0.3s ease-in forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
}

.notification-popup:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    gap: 12px;
}

.notification-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-family: var(--font-montserrat);
    font-weight: 400;
    color: #6d7587;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.notification-message[style*="cursor: pointer"] {
    transition: opacity 0.2s;
}

.notification-message[style*="cursor: pointer"]:hover {
    opacity: 0.7;
}

.notification-progress-container {
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.notification-progress-bar {
    height: 100%;
    width: 0%;
    background: currentColor;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

/* Tipos de notificação */
.notification-info {
    border-left: 1px solid #2196F3;
    color: #2196F3;
}

.notification-info .notification-icon {
    color: #2196F3;
}

.notification-success {
    border-left: 1px solid #4CAF50;
    color: #4CAF50;
}

.notification-success .notification-icon {
    color: #4CAF50;
}

.notification-warning {
    border-left: 1px solid #FF9800;
    color: #FF9800;
}

.notification-warning .notification-icon {
    color: #FF9800;
}

.notification-error {
    border-left: 1px solid #F44336;
    color: #F44336;
}

.notification-error .notification-icon {
    color: #F44336;
}

/* Responsivo */
@media (max-width: 768px) {
    .notification-popup {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
    }
}