:root {
    --alert-error: #d9534f;
    --alert-success: #00a84f;
    --alert-info: #5bc0de;
}

.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1070;
    padding: 18px 24px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(480px, 90vw);
    background-color: var(--alert-error); /* Cor predefinida (erro) */
}

.custom-alert.success {
    background-color: var(--alert-success);
}

.custom-alert.info {
    background-color: var(--alert-info);
}

.custom-alert.error {
    background-color: var(--alert-error);
}

.custom-alert #alertMessage {
    flex: 1;
}

.custom-alert .close-alert {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}