/* Sistema de Notificações Suaves */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    max-width: 400px;
    width: 100%;
}

.notification {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 16px;
    padding: 20px;
    position: relative;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #D62042;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
}

.notification.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #ffffff 100%);
}

.notification.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
}

.notification.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #ffffff 100%);
}

.notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.notification.success .notification-icon {
    background: #28a745;
    color: white;
}

.notification.error .notification-icon {
    background: #dc3545;
    color: white;
}

.notification.warning .notification-icon {
    background: #ffc107;
    color: #212529;
}

.notification.info .notification-icon {
    background: #17a2b8;
    color: white;
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
    margin: 0;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

.notification-message {
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(214, 32, 66, 0.3);
    border-radius: 0 0 12px 12px;
    animation: notificationProgress 5s linear forwards;
}

.notification.success .notification-progress {
    background: rgba(40, 167, 69, 0.3);
}

.notification.error .notification-progress {
    background: rgba(220, 53, 69, 0.3);
}

.notification.warning .notification-progress {
    background: rgba(255, 193, 7, 0.3);
}

.notification.info .notification-progress {
    background: rgba(23, 162, 184, 0.3);
}

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

/* Animações de entrada e saída */
.notification-enter {
    animation: notificationSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-exit {
    animation: notificationSlideOut 0.3s ease-in-out forwards;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .notification-title {
        font-size: 15px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #2d3748;
        color: #e2e8f0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .notification-title {
        color: #e2e8f0;
    }
    
    .notification-message {
        color: #a0aec0;
    }
    
    .notification-close {
        color: #a0aec0;
    }
    
    .notification-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }
}
