/* notification.css - Notificações de erro apenas */
.notification-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* DESKTOP: Canto direito inferior */
@media (min-width: 769px) {
    .notification-container {
        bottom: 24px;
        right: 24px;
        max-width: 380px;
        width: 100%;
    }
}

/* MOBILE: Centro da tela */
@media (max-width: 768px) {
    .notification-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        max-width: 100%;
        width: 100%;
    }

    .notification-container.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .notification-container .notification-toast {
        max-width: 340px;
        width: 100%;
        transform: scale(0.9);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .notification-container.active .notification-toast {
        transform: scale(1);
    }
}

.notification-toast {
    pointer-events: auto;
    background: #0d0d0d;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid rgba(255, 23, 68, 0.15);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* SEMPRE VERMELHO */
.notification-toast {
    border-left: 4px solid #ff1744;
}

/* DESKTOP: Animação da direita */
@media (min-width: 769px) {
    .notification-toast {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .notification-toast.show {
        transform: translateX(0);
        opacity: 1;
    }

    .notification-toast.hide {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }
}

/* Ícone sempre vermelho */
.notification-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    margin-top: 2px;
    background: #ff1744;
}

/* MOBILE: Ícone centralizado */
@media (max-width: 768px) {
    .notification-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin: 0 auto 12px;
    }
}

/* Conteúdo */
.notification-content {
    flex: 1;
    min-width: 0;
}

/* MOBILE: Texto centralizado */
@media (max-width: 768px) {
    .notification-content {
        text-align: center;
    }
}

.notification-title {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

.notification-message {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
}

/* MOBILE: Ajuste do texto */
@media (max-width: 768px) {
    .notification-message {
        font-size: 14px;
    }
}

/* Botão fechar */
.notification-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.notification-close:hover {
    background: rgba(255, 23, 68, 0.15);
    color: #ff1744;
    border-color: rgba(255, 23, 68, 0.3);
}

/* MOBILE: Botão fechar no topo direito */
@media (max-width: 768px) {
    .notification-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* MOBILE: Borda no topo em vez de lateral */
@media (max-width: 768px) {
    .notification-toast {
        border-left: none;
        border-top: 4px solid #ff1744;
        border-radius: 16px;
        padding: 24px 20px 20px;
    }
}