/* Container de Notificações Modernas */
.modern-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 360px;
    pointer-events: none;
}

/* Notificação Individual */
.modern-notification {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    animation: slideIn 0.3s ease-out;
    pointer-events: all;
    margin-bottom: 12px;
    box-sizing: border-box;
}

/* Animações */
@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
        max-height: 200px;
        margin-bottom: 12px;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
    }
}

.modern-notification.removing {
    animation: slideOut 0.3s ease-in forwards;
}

/* Conteúdo da Notificação */
.modern-notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Ícone */
.modern-notification-icon,
.icon-container {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
}

.modern-notification-icon i,
.icon-container i {
    font-size: 20px !important;
    line-height: 1;
}

.modern-notification-icon.bg-success,
.icon-container.bg-success {
    background-color: #28a745;
}

.modern-notification-icon.bg-danger,
.icon-container.bg-danger {
    background-color: #dc3545;
}

.modern-notification-icon.bg-warning,
.icon-container.bg-warning {
    background-color: #ffc107;
}

.modern-notification-icon.bg-info,
.icon-container.bg-info {
    background-color: #17a2b8;
}

/* Texto */
.modern-notification-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.modern-notification-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modern-notification-message {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Botão Fechar */
.modern-notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.modern-notification-close:hover {
    color: #2c3e50;
}

/* Barra de Progresso */
.modern-notification-progress {
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.modern-notification-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #28a745;
    animation: progressBar 5s linear forwards;
}

/* Cores da barra de progresso por tipo */
.modern-notification.alert-success .modern-notification-progress::after {
    background-color: #28a745;
}

.modern-notification.alert-danger .modern-notification-progress::after {
    background-color: #dc3545;
}

.modern-notification.alert-warning .modern-notification-progress::after {
    background-color: #ffc107;
}

.modern-notification.alert-info .modern-notification-progress::after {
    background-color: #17a2b8;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Notificação pausada (quando o mouse está em cima) */
.modern-notification:hover .modern-notification-progress::after {
    animation-play-state: paused;
}

/* Responsividade */
@media (max-width: 768px) {
    .modern-notifications-container {
        width: calc(100vw - 40px);
        right: 20px;
    }
    
    .modern-notification {
        width: 100%;
        min-width: unset;
    }
    
    .modern-notification-content {
        padding: 14px;
    }
    
    .modern-notification-icon,
    .icon-container {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .modern-notification-icon i,
    .icon-container i {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .modern-notifications-container {
        width: calc(100vw - 24px);
        right: 12px;
        top: 12px;
    }
    
    .modern-notification-content {
        padding: 12px;
        gap: 10px;
    }
}
