/* Sistema de Notificações */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #f4c440;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification.info {
    border-left-color: #17a2b8;
}

.notification-icon {
    font-size: 18px;
    min-width: 18px;
}

.notification.success .notification-icon {
    color: #28a745;
}

.notification.error .notification-icon {
    color: #dc3545;
}

.notification.warning .notification-icon {
    color: #ffc107;
}

.notification.info .notification-icon {
    color: #17a2b8;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0 0 4px 0;
}

.notification-message {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f0f0f0;
    color: #666;
}

/* Animações de saída */
.notification.removing {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    overflow: hidden;
}

/* Loading notification especial */
.notification.loading {
    border-left-color: #f4c440;
}

.notification.loading .notification-icon {
    color: #f4c440;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        margin-bottom: 8px;
        padding: 14px 16px;
    }

    .notification-title {
        font-size: 13px;
    }

    .notification-message {
        font-size: 12px;
    }
}

/* Estados de progresso */
.notification.progress {
    position: relative;
    overflow: hidden;
}

.notification.progress::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #f4c440, #e6a500);
    width: 0%;
    transition: width 0.3s ease;
}

.notification.progress.step-1::after { width: 25%; }
.notification.progress.step-2::after { width: 50%; }
.notification.progress.step-3::after { width: 75%; }
.notification.progress.step-4::after { width: 100%; }

/* Tema escuro para notificações */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #2a2a2a;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .notification-title {
        color: #fff;
    }

    .notification-message {
        color: #ccc;
    }

    .notification-close {
        color: #999;
    }

    .notification-close:hover {
        background: #3a3a3a;
        color: #fff;
    }
}
