/* Sistema de Alertas Bonitos */

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.alert {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 4px solid;
    overflow: hidden;
}

.alert.show {
    opacity: 1;
    transform: translateX(0);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.alert-message {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.alert-close {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.alert-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Tipos de alerta */
.alert-success {
    border-left-color: #10b981;
    background: linear-gradient(to right, #d1fae5 0%, white 10%);
}

.alert-success .alert-icon {
    color: #10b981;
}

.alert-error {
    border-left-color: #ef4444;
    background: linear-gradient(to right, #fee2e2 0%, white 10%);
}

.alert-error .alert-icon {
    color: #ef4444;
}

.alert-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fef3c7 0%, white 10%);
}

.alert-warning .alert-icon {
    color: #f59e0b;
}

.alert-info {
    border-left-color: #0066CC;
    background: linear-gradient(to right, #dbeafe 0%, white 10%);
}

.alert-info .alert-icon {
    color: #0066CC;
}

/* Animação de saída */
.alert.removing {
    opacity: 0;
    transform: translateX(400px);
}

/* Responsive */
@media (max-width: 768px) {
    .alert-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .alert {
        transform: translateY(-100px);
    }

    .alert.show {
        transform: translateY(0);
    }

    .alert.removing {
        transform: translateY(-100px);
    }

    .alert-content {
        padding: 14px 16px;
    }

    .alert-message {
        font-size: 13px;
    }
}

